9.4.1.1 Configuring the JRE in the Properties File
The current release of Oracle GoldenGate Java Delivery requires Java 8. Refer to the section on configuring Java for how to correctly access Java and the required Java shared libraries. Modify the Adapter Properties file to point to the location of the Oracle GoldenGate for Java main JAR (ggjava.jar) and set any additional JVM runtime boot options as required (these are passed directly to the JVM at startup):
jvm.bootoptions=-Djava.class.path=.:ggjava/ggjava.jar -Xmx512m -Xmx64m
Note the following options in particular:
-
java.class.pathmust include pathing to the core application (ggjava/ggjava.jar). The current directory (.) should be included as well in the classpath. Logging initializes when the JVM is loaded therefore thejava.class.pathvariable should including any pathing to logging properties files (such aslog4jproperties files). The dependency JARs required for logging functionality are included inggjava.jarand do not need to be explicitly included. Pathing can reference files and directories relative to the Oracle GoldenGate install directory, to allow storing Java property files, Velocity templates and other classpath resources in thedirprmsubdirectory. It is also possible to append to the classpath in the Java application properties file. Pathing to handler dependency JARs can be added here as well. However, it is considered to be a better practice to use thegg.classpathvariable to include any handler dependencies. -
The
jvm.bootoptionsproperty also allows you to control the initial heap size of the JVM (Xms) and the maximum heap size of the JVM (Xmx). Increasing the maximum heap size can improve performance by requiring less frequent garbage collections. Additionally, you may need to increase the maximum heap size if a Java out of memory exception occurs.
Once the properties file is correctly configured for your system, it usually remains unchanged. See Common Properties, for additional configuration options.
Parent topic: Configuring Java Delivery