← 返回命令列表

Linux command

jps 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List Java processes

jps

Show full class names

jps -l

Show JVM arguments

jps -v

Show main class arguments

jps -m

Show all information

jps -lvm

Query remote host

jps -l [hostname]

说明

jps lists Java Virtual Machine processes. It shows running Java applications with their PIDs. The tool is the Java equivalent of ps for Java processes. It provides quick identification of Java applications.

参数

-l
Display the full package name of the main class or the full path to the JAR file.
-v
Display arguments passed to the JVM.
-m
Display arguments passed to the main method.
-q
Suppress class name/arguments; show only local JVM identifiers (PIDs).
-V
Same as -q: list only local JVM identifiers.
-help
Display the help message for jps.

FAQ

What is the jps command used for?

jps lists Java Virtual Machine processes. It shows running Java applications with their PIDs. The tool is the Java equivalent of ps for Java processes. It provides quick identification of Java applications.

How do I run a basic jps example?

Run `jps` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l do in jps?

Display the full package name of the main class or the full path to the JAR file.