RFR(L) 8237354: Add option to jcmd to write a gzipped heap dump
Schmelter, Ralf
ralf.schmelter at sap.com
Wed Feb 12 12:17:31 UTC 2020
Hi Serguei,
the use case is being able to get a heap dump from big Java servers. These usually run on machines with a lot of memory and CPUs, but not much disk space (which they don't need apart from some trace files and the server code itself). And if we can get the customer to mount some NFS file system on the machine, it is usually slow. So writing only a third or forth of the data is a big win.
Doing the compression outside the VM would either depend on the hprof file written first (so we would still need the disk space) or have another channel to dump the data (e.g. via socket). But this would add complexity too and needs an external program.
I've compiled 2 release versions on Windows with and without my change. The change adds 14.5k to the server.dll (which is 10.4 MB). Not sure if this is considered acceptable.
Best regards,
Ralf
-----Original Message-----
From: serguei.spitsyn at oracle.com <serguei.spitsyn at oracle.com>
Sent: Dienstag, 11. Februar 2020 20:49
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
Ralf,
I see this feature adds a lot of code. In fact, I'm not sure, it is
worth to add this kind of complexity (including new compressing threads)
into the VM implementation. What is a real use case behind it? Could
this compressing be done separately from VM implementation?
Thanks,
Serguei
More information about the serviceability-dev
mailing list