Posts

Showing posts with the label jcmd

jcmd : Java Tool

What is jcmd? jcmd is a Java diagnostic tool that can be used to send diagnostic commands to a Java Virtual Machine (JVM). It can be used to troubleshoot and diagnose JVM and Java applications, as well as to control Java Flight Recordings (JFRs). How to use jcmd The jcmd utility can be used to send commands to a JVM by specifying the process ID (PID) of the JVM or the main class of the application. The following is an example of how to use jcmd to send the `help` command to a JVM with a PID of 1234: jcmd 1234 help The `help` command will list all of the available jcmd commands. Available jcmd commands The following are some of the available jcmd commands: * `JFR.start`: Starts a Java Flight Recording. * `JFR.dump`: Dumps the contents of a Java Flight Recording. * `check`: Checks the status of the JVM. * `native_memory`: Prints information about the native memory usage of the JVM. * `check_commercial_features`: Checks if the JVM has any commercial features enabled. * `unlock_com...