there are existing jcmds that (partially) summarize target JVM invocation metadata e.g:
- VM.Version
- VM.Uptime
- VM.Command_line
- VM.Flags
- VM.Info
- ...
many agents and other tools collect and potentially log this metadata, however having the metadata currently implemented by multiple JCmds is
for some use cases non-optimal requiring multiple jcmd round trips to collect.
a new Jcmd that summarizes (in a single operation):
- JVM start time/uptime
- JVM process id
- JVM/JDK version info
- location of JAVA_HOME/JDK
- class path
- module path (if set) (and any other module metadata)
- java command program arguments
- jvm command line options/flags
- any loaded agents
- status of mgmt agent
- ...
this would enable a tool to capture the invocation state of the target JVM in a single operation (optionally appending it to a specified file)
- VM.Version
- VM.Uptime
- VM.Command_line
- VM.Flags
- VM.Info
- ...
many agents and other tools collect and potentially log this metadata, however having the metadata currently implemented by multiple JCmds is
for some use cases non-optimal requiring multiple jcmd round trips to collect.
a new Jcmd that summarizes (in a single operation):
- JVM start time/uptime
- JVM process id
- JVM/JDK version info
- location of JAVA_HOME/JDK
- class path
- module path (if set) (and any other module metadata)
- java command program arguments
- jvm command line options/flags
- any loaded agents
- status of mgmt agent
- ...
this would enable a tool to capture the invocation state of the target JVM in a single operation (optionally appending it to a specified file)
- csr for
-
JDK-8339877 Enhance JCmd by adding a new command to summarize target r/t metadata
-
- Closed
-
- relates to
-
JDK-8219896 Enhance Attach API to support arbitrary length arguments
-
- Open
-