JPS Name: Jps-java Virtual Machine Process Status Tool
command usage: JPS [Options] [HostID]
Options: Command option to control the output format
HostID: Specify a specific host, which can be an IP address and a domain name, or specify a specific protocol, port.
[Protocol:] [[//]hostname] [:p ORT] [/ServerName]
function Description: JPS is the process used to view the hotspot virtual machines that have access to them. When HostID is not specified, the native JVM process is viewed by default, and no person views the JVM process on the specified HostID machine, at which point the HostID machine must turn on the JSTATD service. JPS can list JVM process Lvmid, main class class name, main function parameter, JVM parameter, jar name and other information.
Command options and Features:
When option is not added, the VM designator symbol and the simple class or jar name are listed by default.
-P: Displays only VM markings, does not display Jar,class, main parameters and other information.
-M: Outputs the parameters passed in by the main function. The following hello is the parameter entered from the command line when executing the program
-L: The full package name or jar full name of the output application main class.
-V: Lists JVM parameters,-xms20m-xmx50m is the JVM parameter specified by the initiator
-V: Outputs the JVM parameters specified by. Hotsportrc or-xx:flags=<filename>
-joption: Pass parameters to the Java lancher called by Javac.
Java JPS Command detailed