RFR(L) 8237354: Add option to jcmd to write a gzipped heap dump

Schmelter, Ralf ralf.schmelter at sap.com
Wed Feb 12 08:52:54 UTC 2020


Hi Serguei,

the problem is, that if I make the -gz flag a jlong argument, I cannot just use '-gz'. This causes DCmdArgument<jlong>::parse_value() to be called with a NULL string, which leads to an error. That is why a used a string argument in my code. But using a string when I really mean an integer seems strange too.

Best regards,
Ralf

-----Original Message-----
From: serguei.spitsyn at oracle.com <serguei.spitsyn at oracle.com> 
Sent: Dienstag, 11. Februar 2020 20:42
To: Schmelter, Ralf <ralf.schmelter at sap.com>; Yasumasa Suenaga <suenaga at oss.nttdata.com>; OpenJDK Serviceability <serviceability-dev at openjdk.java.net>
Cc: yasuenag at gmail.com
Subject: Re: RFR(L) 8237354: Add option to jcmd to write a gzipped heap dump

Hi Ralf,

I'd suggest for the option format something like this:
   -gz[=level]

where level is an int. The part [=level] is optional.
The level is 0 by default (if it is not set).

Thanks,
Serguei


More information about the serviceability-dev mailing list