beautypg.com

Configuring java runtime arguments, Xnoclassgc, Global configuration – HP Integrity NonStop H-Series User Manual

Page 199

background image

Configuring Java Runtime Arguments

The configurations for Java runtime arguments can be done in the

<iTP WebServer

deployment directory>/conf/servlet.config

file on OSS. The

sscaux

object is

configured under the

Server

directive. The Java runtime arguments are populated in the

Arglist

. Some of the important Java runtime arguments that you must consider during the

deployment of your Axis2/Java applications are:

-Xmx

-Xss

-Xnoclassgc

There are other Java runtime arguments supported by NSJSP. For more information, see the
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide.

-Xmx

Sets the maximum size of the memory allocation pool, which is the garbage collected heap.

Syntax:

-Xmx maximum-heap-size [ k | m ]

where,

maximum-heap-size

is the maximum size of the memory allocated for the garbage collected.

It must be greater than or equal to 1000 bytes.

k

sets the value of

maximum-heap-size

to be read in kilobytes.

m

sets the value of

maximum-heap-size

to be read in megabytes.

-Xss

Sets the maximum stack size that can be used by a Java thread.

Syntax:

-Xmx maximum-stack-size

where,

maximum-stack-size

is the maximum size of the stack trace in kilobytes.

-Xnoclassgc

Is an optional argument to stop the Java class garbage collection.

Syntax:

-Xnoclassgc

By default, the Java runtime reclaims space for unused Java classes. Including this optional
argument might prevent any memory-leak problems.

Axis2/Java Framework Configurations for NonStop Systems

This section discusses the NonStop specific Axis2/Java configurations for the following:

Global Configuration

Service Configuration

Module Configuration

Global Configuration

Global configurations are used to configure the whole system, wherein the

axis2.xml

file

provided with the Axis2/Java distribution is configured.

Axis2/Java Framework Configurations for NonStop Systems

199

This manual is related to the following products: