Configuring JVM Command-Line Options

The java_options property configures command-line options for the Java Virtual Machine (JVM). The value of the java_options property is a single string that can contain several command-line options.

The following java_options setting allows the JVM to find the Hadoop libraries, sets the JVM to server mode, and configures the amount of JVM heap memory to a minimum 512 MB and a maximum 2048 GB.
Note: The -XX:MaxPermSize=128m option sets the size of the area where Java stores permanent objects to 128 MB.

See the Oracle Java documentation for available JVM options.

Prerequisites

Procedure

  • Add the following code:
    java_options= -Djava.library.path=$CHORUS_HOME/vendor/hadoop/lib/ -server -Xmx2048m -Xms512m -XX:MaxPermSize=128m