On Wed, 3 Apr 2024 13:37:56 GMT, Christoph Langer <[email protected]> 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
