JVM options

Arguments can be passed to the JVM during invocation. The arguments are specific to a JVM. These options vary by operating system; specify java -h on the command line to see the options.

Note: If other items are included on the JVM Arguments line, then they must be separated by spaces.

Examples of other JVM arguments include:

  • -Xmixed

    Mixed mode running (default).

  • -Xint

    Interpreted mode running only.

  • -Xbootclasspath: Directories and zip/jar files that are separated by ;

    Set search path for bootstrap classes and resources.

  • -Xbootclasspath/a: Directories and zip/jar files that are separated by ;

    Append to end of bootstrap class path.

  • -Xbootclasspath/p: Directories and zip/jar files that are separated by ;

    Prepend in front of bootstrap class path.

  • -Xnoclassgc

    Disable class garbage collection.

  • -Xincgc

    Enable incremental garbage collection.

  • -Xloggc: file

    Log GC status to a file with time stamps.

  • -Xms size

    Set initial Java heap size.

  • -Xmx size

    Set maximum Java heap size.

  • -Xss size

    Set java thread stack size.

  • -Xcheck: jni

    Perform additional checks for JNI functions.