JDK-8237354 : Add option to jcmd to write a gzipped heap dump
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-16
  • Updated: 2020-09-03
  • Resolved: 2020-06-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15 JDK 16
15 b27Fixed 16Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8250554 :  
Description
An option should be added to the GC.dump_heap command, to write the hprof file in gzipped format.

This usually saves a lot of space (about factor 3 in our tests).

Heap hero already let's you upload gzipped hprof files. And the Eclipse Memory Analyzer (MAT) has recently got this feature (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=438844), which should be in the next official release.

Since the deflate algorithm used in the gzip format is not very fast, the compression should be done in parallel as far as possible.


Comments
Changeset: 19be4971 Author: Ralf Schmelter <rschmelter@openjdk.org> Date: 2020-06-10 12:29:01 +0000 URL: https://git.openjdk.java.net/lanai/commit/19be4971
02-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/649ca60ef516 User: rschmelter Date: 2020-06-10 10:31:16 +0000
10-06-2020

The reviews are a bit spread over time, so I assembled them here: http://mail.openjdk.java.net/pipermail/serviceability-dev/2020-February/030369.html http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-March/038632.html http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-April/039004.html http://mail.openjdk.java.net/pipermail/serviceability-dev/2020-May/031363.html http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-June/039897.html
03-06-2020