Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new index page for heap dump creation (#8929)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
- Loading branch information
1 parent
b91a57c
commit b8236f8
Showing
4 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/src/main/resources/hudson/util/RemotingDiagnostics/HeapDump/index.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt"> | ||
<l:layout permission="${app.ADMINISTER}"> | ||
<st:include page="sidepanel.jelly" it="${it.context}"/> | ||
<l:main-panel> | ||
<l:app-bar title="${%title(it.context.displayName)}"/> | ||
<p class="jenkins-description"> | ||
${%blurb} | ||
</p> | ||
<form action="heapdump.hprof" method="post"> | ||
<input type="submit" class="jenkins-button" value="${%Download}"/> | ||
</form> | ||
</l:main-panel> | ||
</l:layout> | ||
</j:jelly> |
3 changes: 3 additions & 0 deletions
3
core/src/main/resources/hudson/util/RemotingDiagnostics/HeapDump/index.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
blurb = Download a heap dump to help diagnose problems. \ | ||
Heap dump creation is only supported on Java runtimes based on OpenJDK/HotSpot. | ||
title = Download Heap Dump for {0} |