Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Java™ Troubleshooting Guide for HP-UX Systems: > Chapter 1 Diagnostic and Monitoring Tools and Options

jps (1.5+ only)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The jps tool lists the Java VMs on the target system. The tool is limited to reporting information on Java VMs that the user has access rights to, as determined by HP-UX specific access control mechanisms. For example, if a non-root user executes the jps command, a listing of all virtual machines started with that user's uid is given by the operating system.

The following output is the usage information for the jps command:

Usage:  jps [-help]    
        jps [-q] [-mlvV] [<hostname>[:<port>]] 

Description of options:
  -q  Suppress the output of the class name, JAR file name, and arguments
      passed to the main method, producing only a list of local JVM pids
  -m  Show the arguments passed to the main method. This output may be null
      for embedded JVMs. 
  -l  Show the full package name for the application's main class or the
      full path nameof the application's JAR file.
  -v  Show the arguments passed to the JVM.
  -V  Show the arguments passed to the JVM through the flags file 
      (the .hotspotrc file or the file specified by -XX:Flags=<filename>).

Note:  These options are subject to change or removal in the future.

The following example shows the use of jps:

$ /opt/java1.5/bin/jps -lmv
  16666 sun.tools.jps.Jps -lmv 
  -Denv.class.path=.:/opt/java1.5/lib/classes.zip -Dapplication.home=/opt/java1.5 -Xms8m    
  16665 MyObjectWaiterApp -Xverbosegc    
  16641 spec.jbb.JBBmain -propfile S.pr.8 -Xmx1600m -Xms1600m -Xmn1500m

For more information about jps, refer to the following document:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2009 Hewlett-Packard Development Company, L.P.