jps
Introduction
The jps command provided by Java displays the IDs and brief information of all Java processes.
Installation Mode
Use OpenJDK to install this tool. For BiSheng JDK, it is a built-in tool.
Usage
- If a Java environment is configured, you can directly run the jps command.
- If no Java environment is not configured, run the ps -ef | grep java command to find the Java process. Then, switch to the JDK bin directory, and run the ./jps command.
Syntax:
jps -l
Common parameters are as follows:
Parameter
Description
-v
Displays the JVM parameters set in the command line.
-l
Outputs the complete package name, application main class name, and complete path name of the JAR package.
-q
Displays only the Java process IDs.
Parent topic: Analysis Tools