iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Using NonStop Servlets for JavaServer Pages
(NSJSP)
iTP Secure WebServer System Administrator’s Guide—523346-002
9-20
servlet.config
Consider adding any of the optional Java runtime arguments (listed below) to the
Java Arglist parameter. Note that the Arglist arguments for Java precede the
servlet, as in the following example:
Arglist -Xnoclassgc -Xmx16m -D browserdebug=false\
-Djdbc.drivers=com.tandem.sqlmp.SQLMPDriver\
-Djdbc.drivers
identifies the SQL driver to NonStop Server for Java. It is required for servlets
that use SQL/MP for Java. If present, this option must have the value
com.tandem.sqlmp.SQLMPDriver.
-Xmx maximum-heap-size [ k | m ]
where
maximum-heap-size
sets the maximum size of the memory allocation pool, which is the garbage
collected heap, to maximum-heap-size which must be greater than or
equal to 1000 bytes.
In the servlet.config.sample file, the value is set to 16 MB.
k
sets the value to be read in kilobytes. If neither k or m is specified, the
value is read in bytes.
m
sets the value to be read in megabytes. If neither k or m is specified, the
value is read in bytes.
-Xnoclassgc
The -Xnoclassgc optional argument turns off Java class garbage collection.
By default, the Java runtime reclaims space for unused Java classes. Including
this optional argument may help prevent potential memory leak problems.
-D browserdebug=false
This argument will allow the browser to show error details. The default is false.
If you encounter an unexplained error with a certain request, turn on the
browserdebug (true), restart the server, and rerun the request.
For additional information about NonStop Server for Java, see the NonStop Server for
Java (NSJ) Programmer’s Guide.