Listing JVM Processes on the Local Machine with "jps"

This section provides a tutorial example on how to list all JVM processes on the local machine with process IDs, and other JVM information.

It is very easy to list JVM processes on the local machine using the "jps" tool. Here is what I did:

1. Run the program I wrote in another tutorial in a command window:


C:\herong>\Progra~1\java\jdk1.8.0\bin\java PrimeNumberSeeker 10 200

Period, Current int, # primes
1, 2, 0
2, 12, 5
3, 21, 8

2. While is running to search for prime numbers, run the "jps" tool in another command window:

C:\herong>\Progra~1\java\jdk1.8.0\bin\jps -l -m -v

2836 PrimeNumberSeeker 10 200
3812 -l -m -v 
   -Dapplication.home=C:\Program Files\java\jdk1.8.0 -Xms8m

Several interesting notes on the "jps" output:

Last update: 2015.

Table of Contents

 About This Book

 Java Tools Terminology

 Installing Java 8 on Windows

 'javac' - The Java Program Compiler

 'java' - The Java Program Launcher

 'jdb' - The Java Debugger

 'jconsole' - Java Monitoring and Management Console

'jstat' - JVM Statistics Monitoring Tool

 'jps' - JVM Process Status Tool

Listing JVM Processes on the Local Machine with "jps"

 'jstatd' - JVM Remote Monitoring Server

 Starting 'jstatd' with a Security Policy File

 Connecting to 'jps' to Remote 'jstatd'

 'jstat' Command Options and Parameters

 Garbage Collection Testing Program

 'jstat -gcutil' - Garbage Collection Statistics

 Accessing Remote JVM Processes with 'jstat'

 JVM Troubleshooting Tools

 jvisualvm (Java VisualVM) - JVM Visual Tool

 'jar' - The JAR File Tool

 'javap' - The Java Class File Disassembler

 'keytool' - Public Key Certificate Tool

 'native2ascii' - Native-to-ASCII Encoding Converter

 Outdated Tutorials


 PDF Printing Version