JPS--Java Virtual machine Process Status Tool
You can list the PID of all Java processes in this machine
JPS [Options] [HostID]
Options-Q outputs only VM identifiers, excluding class Name,jar name,arguments in Main method
-M output Main method parameters
-L outputs the full package name, applies the main class name, and the full path name of the jar
-V Output JVM parameters
-V outputs the parameters that are passed to the JVM by the flag file (the. hotspotrc file or the file specified by-xx:flags=
-joption Pass parameters to the VM, for example:-j-xms48m
JPS Exception:
JPS have problems, JPS Error details can be obtained using jps-j-djps.debug=true-j-djps.printstacktrace=true
Additionally: The JDK version does not match the running process and can cause JPS to appear
A LINXU command 6 JPS per day? Viewing the ports of a Java process