9.4.3.1.2.1 jvm.bootoptions
Specifies the initial Java classpath and other boot options that will be applied when the JVM starts. The java.class.path
needs colon (:) separators for UNIX/Linux and semicolons (;) for Windows. This is where to specify various options for the JVM, such as initial and maximum heap size and classpath; for example:
-
-Xms: initial java heap size
-
-Xmx: maximum java heap size
-
-
Djava.class.path: classpath specifying location of at least the main application JAR,ggjava.jar
. Other JARs, such as JMS provider JARs, may also be specified here as well; alternatively, these may be specified in the Java application properties file. If using a separatelog4j
properties file then the location of the properties file must be included in thebootoptions
java.class.path
included in the bootoptions variable. -
-verbose:jni: run in verbose mode (for JNI)
For example (all on a single line):
jvm.bootoptions= -Djava.class.path=ggjava/ggjava.jar -Dlog4j.configuration=my-log4j.properties -Xmx512m
The log4j.configuration
property identifies a log4j properties file that is resolved by searching the classpath. You may use your own log4j configuration, or one of the preconfigured log4j settings: log4j.properties
(default level of logging), debug-log4j.properties
(debug logging) or trace-log4j.properties
(very verbose logging). To use log4j
logging with the Replicat
process gg.log=log4j
must be set.
Use of the one of the preconfigured log4j settings does not require any change to the classpath since those files are already included in the classpath. The -Djava.class.path
variable must include the path to the directory containing a custom log4j configuration file without the * wild card appended.
Parent topic: JVM Boot Options