RFR: JDK-8260282: Add option to compress heap dumps created by -XX:+HeapDumpOnOutOfMemoryError
Chris Plummer
cjplummer at openjdk.java.net
Mon Jan 25 19:25:48 UTC 2021
On Mon, 25 Jan 2021 16:07:24 GMT, Ralf Schmelter <rschmelter at openjdk.org> wrote:
> This change adds the optiont to created a gzipped heap dump by -XX:+HeapDumpOnOutOfMemoryError.
>
> -XX:HeapDumpGzipLevel=<level> sets the compression level. 0 (the default) means no gzipping of the dump. Otherwise the level has to be between 1 and 10.
src/hotspot/share/runtime/globals.hpp line 561:
> 559: "level of the dump file. 0 (the default) disables gzip " \
> 560: "compression. Otherwise the level must be between 1 and 10.") \
> 561: range(0, 10) \
Isn't the range 0-9? Although `HeapDumper::dump()` imposes no upper limit (it seems it should), the `HeapDumpDCMD` sets the upper limit to 9. See `HeapDumpDCmd::execute()`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2222
More information about the hotspot-runtime-dev
mailing list