Top
Interstage Studio J Business Kit User's Guide
FUJITSU Software

2.3.2 Specifying Java VM Startup Options

This section describes how to specify Java VM startup options.

The user can specify Java VM startup options for executing a Java VM with JBK Plugin. Command line options of "java" command can be used as Java VM startup options.

Specifying Java VM Startup Options

To specify Java VM startup options, code the following line in the jbkplugin.properties file.

jbk.plugin.vmoption=<java-vm-startup-options>

As <java-vm-startup-options>, specify the following options: See the "java" command reference manual for the detail of each option.

Startup Options for the Java VM of the JavaSE

Options must be separated by one or more space characters (' ').

-agentlib :

Specifies the native agent library.

-classpath (or -cp) :

Specifies the class path.

-D :

Defines a property value.

-Xbootclasspath :

Specifies the boot class path.

-Xbootclasspath/p :

Prepends the specified path in front of the default boot class path.

-Xbootclasspath/a :

Appends the specified path to the default boot class path.

-Xms :

Sets the startup amount of the heap size.

-Xmx :

Sets the maximum amount of the heap size.

-Xnoclassgc :

Turn off garbage collection of Java class.

-Xrunhprof :

Enables to profile CPU, heap, and so on.(cannot use -Xrunhprof:help)

-Xrs :

Reduces the use of OS signals.

-Xfuture :

Verifies the format of the class file strictly.

Note

  • By default, "-Dsun.java2d.noddraw=true" (suppress DirectDraw) is specified for the Java VM startup option in jbkplugin.properties.
    It is recommended that the setting of the option not be changed from the default.

  • If you want to specify "-classpath" with the path name that includes space characters, you must enclose the path name with '"'.

  • The startup amount of the heap size (specified by "-ms" of "-Xms") must be equal to or less than the maximum amount of the heap size (specified by "-mx" or "-Xmx"). Otherwise, JBK Plugin fails to execute a Java VM.

  • The length of an option is limited to 1024 bytes, including "jbk.plugin.vmoption=". Strings that exceed 1024 bytes will be ignored.

Example

Sample specifications of Java VM startup options

jbk.plugin.vmoption=-Xms32m -Xmx96m -Dsun.java2d.noddraw=true