LinuxCommandLibrary

jps

List running 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 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.

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95