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 3 09:07:13 UTC 2024


On Fri, 29 Mar 2024 04:15:24 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> There's still the question of whether or not it is even appropriate to have -XX options taking the place of jcmd options.

Some people (like our cloud support colleagues and also some who commented) would like this approach, some find it not very useful.
Seems there are also already other globals flags playing a role in diagnosticCommand coding (e.g. RecordDynamicDumpInfo, maybe more) so it is not completely 'new' that the jcmd commands are influenced by globals flag.
Looking at just the _names_ of  HeapDumpPath and also  HeapDumpGzipLevel   I would think that they play a role for all heap dumps and not just some.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18190#issuecomment-2033985633


More information about the serviceability-dev mailing list