Skip to Content
Java in a Nutshell, 5th Edition
book

Java in a Nutshell, 5th Edition

by David Flanagan
March 2005
Intermediate to advanced
1254 pages
104h 21m
English
O'Reilly Media, Inc.
Content preview from Java in a Nutshell, 5th Edition

Name

jps — List Java processes

Synopsis

jps [ options ] [ hostname[:port ] ]

Description

jps lists the Java processes running on the local host or on the specified remote host. If a remote host is specified, it must be running the jstatd daemon. For each Java process, it displays a process id and names the class or JAR file that the process is executing. Process ids are used by a number of other Java tools, such as jconsole, jstat, and jmap.

Options

The options below alter the default jps display. The single-letter options, except for -q, may be combined into a single command-line argument, such as -lmv:

-help

Displays a usage message.

-l

Lists the full package name of the main class or the full path of the JAR file running in each Java process.

-m

Lists the arguments passed to main( ) method of each Java process.

-q

Lists only Java process identifiers, without application name or any additional information.

-v

Lists arguments passed to the Java interpreter for each Java process.

-V

Lists arguments passed to the interpreter through a flags file such as .hotspotrc.

See also

jstatd

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 0596007736Supplemental ContentErrata Page