NonStop Server for Java 7.0 Tools Reference Pages

23 nsjps: NonStop Java Virtual Machine Process Status Tool
The nsjps tool is a process status tool that lists and monitors the Java processes running on a system.
The input and output options of nsjps tool are enhanced in the 64–bit version of NSJ7.
NOTE: The nsjps tool can list or monitor NSJ7 Java applications. To list or monitor previous Java
applications, use previous version of nsjps tool.
Synopsis
nsjps [ <options> ]
The following options are supported:
PurposeOption
Lists the Java and GC processes separately.-gc
Lists the Java process corresponding to the GC process.-gcpid
Lists the Java processes running on the specified CPU.-cpu <cpuNumber>
Lists the Java processes owned by specified user.-user <userId|userName>
Lists the Java processes with matching heap.-heap { < | = | > } <size {K|M|G|k|m|g} >
Lists the children of the specified Java process.-parent <pid>
Displays the current heap size.-h
Displays Java or GC processes in long format.-l
Includes argument in the display.-v
Includes the Guardian pin in the output.-p
Includes the owner in the output.-u
Displays the process and elapsed time.-t
Provides cross reference of parent and child Java processes.-x
Prints the nsjps help text.-help
Repeats the listing of Java or GC process for the specified
number of times.
-count <cnt>
Specifies the time to sleep before the next sample.-delay <time>
Input Options
The input option is used to invoke the nsjps tool with various options to select the Java process
based on the selection criteria.
-gc
In NSJ7, parallel and concurrent mark sweep GCs (CMS GC) are enabled for
J-series systems. To utilize the multi-core capabilities of Integrity platform, the parallel
and CMS GCs are run as a separate process in the same processor where the Java
process is running. Because of this, in NSJ7, a Java application consists of a Java
process, and one or more GC processes (if parallel or CMS GC is enabled).
By default, nsjps lists only the Java processes. NSJ7 provides the -gc input option
to obtain details about GC processes. If -gc option is specified, GC process details
are printed with the corresponding Java process. If -gc is not specified, the heap
46 nsjps: NonStop Java Virtual Machine Process Status Tool