LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jps

lists Java Virtual Machine processes

TLDR

List Java processes
$ jps
copy
Show full class names
$ jps -l
copy
Show JVM arguments
$ jps -v
copy
Show main class arguments
$ jps -m
copy
Show all information
$ jps -lvm
copy
Query remote host
$ jps -l [hostname]
copy

SYNOPSIS

jps [options] [hostid]

DESCRIPTION

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.

PARAMETERS

HOSTID

Remote host to query.
-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.

CAVEATS

Part of JDK. Shows JVM processes only. Requires same user or permissions.

HISTORY

jps has been part of the JDK since Java 5, providing process listing for Java application management.

SEE ALSO

java(1), jstack(1), jmap(1), ps(1)

Copied to clipboard
Kai