NonStop Server for Java 7.0 Tools Reference Pages
size and process time are consolidated values for the Java and corresponding GC
processes.
NOTE: This option is applicable only for J-series systems.
The following example shows the usage and sample output for -gc option:
nsjps —gc
PID Cmd
45676 java
67894 javagc
-gcpid <pid>
To obtain details about the Java process corresponding to a GC process, -gcpid
<pid> is provided, where, <pid> refers to the <pid> of the GC process.
NOTE: This option is applicable only for J-series systems.
The following example shows the usage and sample output for -gcpid option:
nsjps —gcpid 67894
PID Cmd
45676 java
-cpu <cpuNumber>
This option lists the Java process running on the CPU specified by the cpuNumber.
The following example shows the usage and output for -cpu option:
nsjps —cpu 1
PID Cmd
50331674 java
-user <UserID | username>
This option lists the Java process run by the user specified by userID or userName.
The following example shows the usage and output for -user option:
nsjps -user nsjava.guest
PID Cmd
50331674 java
Specifying Heap Size
The -heap option lists the Java processes. This option accepts heap sizes in kilobyte
and megabyte by suffixing the value with K or M(the suffix character is not case
sensitive). In a 64–bit JVM, the heap sizes are large, therefore, the heap size can
be suffixed with G (indicates that value is in Gigabyte). The following example
shows the usage and output for -heap option:
nsjps —heap \> 1G
PID Cmd
79289 java
45678 java
-parent <pid>
This option lists the child process of the given process ID of the Java process. The
following example shows the usage and output for -parent option:
Synopsis 47










