jdk
jdk copied to clipboard
8327864: Support segmented heap dump for HotSpotDiagnosticMXBean
We've received feedback from users of cloud APM platform wanting the new version of the JDK to allow the HotSpotDiagnosticMXBean.dumpHeap underpinnings to reduce STW time using sgemented heapdump. Supporting segmented heapdump for mxbean is a reasonable requirement and adds little additional complexity, both in terms of maintainability and understanding.
Progress
- [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue
Issue
- JDK-8327864: Support segmented heap dump for HotSpotDiagnosticMXBean (Bug - P4) ⚠️ Issue is not open.
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18221/head:pull/18221
$ git checkout pull/18221
Update a local copy of the PR:
$ git checkout pull/18221
$ git pull https://git.openjdk.org/jdk.git pull/18221/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18221
View PR using the GUI difftool:
$ git pr show -t 18221
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18221.diff
Webrev
:wave: Welcome back yyang! A progress list of the required criteria for merging this PR into master
will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.
@y1yang0 The following labels will be automatically applied to this pull request:
-
hotspot-runtime
-
serviceability
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.
❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.
Hi @kevinjwalls Thanks for your review! I was reminded by Alex that there is already a similar issue here ready to make two phase heap dump the default choice, so all we need is to simply change the default parallel parameter (and potential bug fix)
https://github.com/openjdk/jdk/blob/21279b1f652c54693e317d55e7da6478b959fdfb/src/hotspot/share/services/heapDumper.hpp#L64
I will first synergize with @alexmenkov to see if we can improve based on the current patch, or close the current PR and wait for his new one.
P.S. the phrase "two phase" makes sense to me:)
We should close this now the issue is marked as a duplicate, thanks!