RFR: JDK-8327769: jcmd GC.heap_dump without options should write to location given by -XX:HeapDumpPath, if set [v10]
Chris Plummer
cjplummer at openjdk.org
Wed Apr 3 20:47:11 UTC 2024
On Wed, 3 Apr 2024 13:37:56 GMT, Christoph Langer <clanger at openjdk.org> wrote:
> Couldn't we just have an unconditional default for the GC.heap_dump `filename` option? This would simplify the documentation. E.g. we could write `If not specified, defaults to java_pid<pid>.hprof in the working directory or value configured through -XX:HeapDumpPath`
I've had similar thoughts while considering this PR. I'm not sure why currently there is no default. HeapDumpPath is not quite as simple as you document it above. It can be a filename or a directory, and when it is a directory it has its own default file naming. This should be captured in the jcmd help.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18190#issuecomment-2035550491
More information about the hotspot-gc-dev
mailing list