NonStop Server for Java Programmer's Reference (NSJ 4.0+)

Creating Larger or Additional Swap Files
To have enough memory to execute the Java virtual machine (Java VM), you need one additional
swap file managed by the NonStop Kernel operating system for each processor in which you plan
to run the Java VM. Each of these swap files must be at least 510 MB (1024 Extents, 255
MaxExtents).
Since the G06 software release, the operating system creates one swap file per processor, but the
default swap file size is 256 MB.
Your system administrator can use the NSKCOM tool to create additional swap files.
Even if the default swap file size is already 256 MB (or more), you might need to create additional
swap files if you plan to run multiple large processes in the same processor, because processes
running in the same processor share the same swap file.
To add swap files, you must log on to your NonStop Kernel operating system as a super-group user.
Then, from the Guardian TACL prompt, run the NSKCOM tool. From within the NSKCOM tool,
use the help add and help start commands to get more information. For further information,
see the Kernel Managed Swap Facility (KMSF) Manual.
Setting Environment Variables
The following subsection describes the variables that define the environment in which Java operates.
PATH
The environment variable PATH enables Open System Services (OSS) to find the Java executable
files. You must therefore add the absolute path of the java/bin directory to the PATH environment
variable.
To add the absolute path, use this command:
export PATH=/install_dir/java/bin:$PATH
where install_dir is the directory in which the NonStop Server for Java 4 was installed. By
default, this is /usr/tandem.
The PATH shell variable must be created in each shell in which you plan to run java or one of its
tools. For this reason, it is a good idea to set the PATH in the .profile file in your home directory
that is executed each time you log on to an OSS shell. See the Open System Services User's Guide for
information on how to set the path in your startup file.
CLASSPATH
If you follow the default installation procedure, you do not need to set the environment variable
CLASSPATH. You must set CLASSPATH only if you move any of the provided .zip or .jar files
or want to load a nondefault library (such as one that you develop).