jps
List running Java Virtual Machine processes
TLDR
List Java processes
SYNOPSIS
jps [options] [hostid]
DESCRIPTION
jps lists instrumented Java Virtual Machine processes on the local system or a remote host. It functions as a Java-specific equivalent of ps, showing the process ID and main class name for each running JVM.
The -l flag displays fully qualified class names or JAR paths, making it easier to distinguish between multiple Java applications. Use -v to see the JVM arguments each process was started with, and -m to see the arguments passed to the main method. These options can be combined (e.g., -lvm) for comprehensive process information.
The tool works by reading the JVM's performance data directory, so it can only see processes running under the same user (or all processes when run as root).
PARAMETERS
HOSTID
Remote host to query.-l
Show full main class name.-v
Show JVM arguments.-m
Show main method arguments.-q
Show only PIDs.--help
Display help information.
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.
