RFR: JDK-8327769: jcmd GC.heap_dump without options should write to location given by -XX:HeapDumpPath, if set [v10]
Matthias Baesken
mbaesken at openjdk.org
Wed Apr 10 13:06:12 UTC 2024
On Wed, 10 Apr 2024 04:34:53 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> One other thing I just realized is that if we go through with this change, then we can't in the future change VM.heap_dump so it can be used without any filename (make it use a default filename when no filename is specified). Setting HeapDumpPath would override this default filename, and it would be really confusing to the user when suddenly heap dumps are not appearing in the default location with the default name because someone decided to specify HeapDumpPath when launching the JVM.
Isn't this the case already for the -XX:+HeapDumpBeforeFullGC, -XX:+HeapDumpAfterFullGC scenarios?
But probably it should be decided first if such a default is planned for VM.heap_dump .
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18190#issuecomment-2047487391
More information about the serviceability-dev
mailing list