jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8327864: Support segmented heap dump for HotSpotDiagnosticMXBean

Open y1yang0 opened this issue 11 months ago • 5 comments

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

Link to Webrev Comment

y1yang0 avatar Mar 12 '24 07:03 y1yang0

: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.

bridgekeeper[bot] avatar Mar 12 '24 08:03 bridgekeeper[bot]

@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.

openjdk[bot] avatar Mar 12 '24 08:03 openjdk[bot]

Webrevs

mlbridge[bot] avatar Mar 12 '24 08:03 mlbridge[bot]

❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.

openjdk[bot] avatar Mar 13 '24 20:03 openjdk[bot]

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:)

y1yang0 avatar Mar 14 '24 02:03 y1yang0

We should close this now the issue is marked as a duplicate, thanks!

kevinjwalls avatar Mar 25 '24 10:03 kevinjwalls