RFR: JDK-8327769: jcmd GC.heap_dump without options should write to location given by -XX:HeapDumpPath, if set [v2]
Matthias Baesken
mbaesken at openjdk.org
Tue Mar 12 12:39:14 UTC 2024
On Tue, 12 Mar 2024 11:08:01 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
>Does dump_to_heapdump_path() not print the ("Dumping heap to %s ...", path) message?
>That seems important when the user isn't specifying it directly.
The path is already printed, here is an example (the JVM with pid 219447 was started with` -XX:HeapDumpPath=... `).
images/jdk/bin/jcmd 219447 GC.heap_dump
219447:
Dumping heap to /mydir/test/dumpdir/dydumpfile ...
Heap dump file created [3757116 bytes in 0.046 secs]
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18190#issuecomment-1991554323
More information about the hotspot-gc-dev
mailing list