Hitachi

uCosminexus Application Server Definition Reference Guide


5.2.2 usrconf.bat (Option definition file for server management commands for Windows)

Organization of this subsection

(1) Format

This option definition file is in the batch file format of Win32.

Specify the key as follows:

set key-name=value

(2) File storage location

Cosminexus-installation-directory\CC\admin\usrconf\

(3) Functionality

This file specifies the invocation options of the JavaVM that executes the server management commands. Note that this file is for Windows.

(4) Specifiable keys

The following table describes the specifiable keys and the default values:

Key name

Contents

Default

USRCONF_JVM_ARGS

This key invokes JavaVM by using the specified option. You can specify the following JavaVM options:

  • -Xmssize

  • -Xmxsize

  • -Xsssize

  • -Xdebug

  • -XrunlibraryName

  • -Dejbserver.log.directory

  • -XX:MetaspaceSize

  • -XX:MaxMetaspaceSize

For details about default values, see 5.2.2(5) Default values of the JavaVM invocation options that execute the server management commands (In usrconf.bat).

USRCONF_JVM_CLASSPATH

This key adds the set value to the class path. If you want to specify multiple values, demarcate the values with a semicolon (;).

None

USRCONF_JVM_LIBPATH

This key adds the set value to the environment variable of library search path. If you want to specify multiple values, demarcate the values with a semicolon (;).

None

(5) Default values of the JavaVM invocation options that execute the server management commands (In usrconf.bat)

The following table describes JavaVM options that you can specify in USRCONF_JVM_ARGS:

Key name

Contents

Specifiable value

Default

VR

-Xms

This key sets the initial size for the Java heap.

The input is not limited.

None

06-00

-Xmx

This key sets the maximum size for the Java heap.

  • If a command cannot be executed normally because memory becomes insufficient during command execution, specify this option to increase the maximum size of the memory allocation pool.

  • If a server management command is started when the operation-target file is large, the java.lang.OutOfMemoryError message might be displayed on the console from which the command was started. If this message is displayed, specify this option and the -Xms option to adequately tune the Java VM memory allocation size.

Example:

set USRCONF_JVM_ARGS="-Xms64m -Xmx256m"

The input is not limited.

512m

06-00

-Xss

This key sets the maximum size for one stack area.

The input is not limited.

None

06-00

-Xdebug

This key invokes JavaVM with the debugger in enable status.

The input is not limited.

None

06-00

-Xrun

This key loads the library.

The input is not limited.

None

06-00

-Dejbserver.log.directory

This key specifies the path of the directory where the log file is output. Use a forward slash (/) as the delimiter in the directory path.

The input is not limited.

None

06-00

-XX:MetaspaceSize

This key sets the minimum threshold value for Full GC in the metaspace area. This value is used in the calculation of changing the threshold value.

The input is not limited.

None

09-70

-XX:MaxMetaspaceSize

This key specifies the maximum size for the Metaspace area.

The input is not limited.

None

09-70

(6) Examples of coding

set USRCONF_JVM_ARGS=-Xms64m -Xmx512m
set USRCONF_JVM_CLASSPATH=C:\home\lib\mylib.jar
set USRCONF_JVM_LIBPATH=C:\home\bin

(7) Precautions