NonStop Server for Java 5.1 Programmer's Reference

Specifying the CPU and Process Name
with Which an Application Runs
You can specify which CPU an application process runs in and its process name by using options of the
run utility. The run utility starts OSS programs with specific attributes.
The format of the command to specify the CPU where a Java application is to run is:
run -cpu=cpu_number java class_name
For example, the command to run Java in CPU 3 is:
$run -cpu=3 java HelloWorld
The format of the command to give a java process a process name is:
run -name=/G/process_name java class_name
For example, the command to give Java the process name $APPJ is:
$run -name=/G/appj java HelloWorld
where the /G directory identifies the Guardian fileset. For information about the /G
directory, see the Open System Services User's Guide.
The following example combines more than one run option in a single command:
$run -name=/G/japp -cpu=3 java HelloWorld
For more information about the run(1) utility, see the Open System Services Shell and Utilities
Reference Manual.
Configuring a Java Pathway Serverclass
The following is a brief overview of the specific Java requirements for configuring a Java program to run
as a Pathway serverclass. Complete information about the topic is available in the TS/MP System
Management Manual.
The serverclass attributes that have specific Java requirements follow. Typically, the attribute settings
would be put in a configuration file, but the examples here show setting them in the OSS environment.
ARGLIST
The ARGLIST should appear as follows:
-Xabend,class-name[,arguments]
where [,arguments] is an optional, comma-separated list of arguments that are to be passed to