Hello, We are upgrading our environments with pega 8.8.3 version from 8.6.1 installation which are on
RHEL8x64
Oracle 19c
Apache tomcat 9.0.62-sp6 version
JRE version build 1.8.0_391-b13
We have a doubt here on JRE version, can we go with the same JRE version(1.8.0_391-b13) or do we need to upgrade to Java JRE version to 11.
If it’s recommended to go with Java JRE 11 version, do we need to update the Garbage collection arguments? or any others changes in the configurations are recommended like hazelcast etc..?.
Referring to Notes on Java Virtual Machines (JVMs) section in the above link , it says “Tomcat does not bundle a JVM in its application. Pega recommends using either OpenJDK, Oracle, or IBM Java 8 or Java 11, at the Java vendor’s latest patch level (unless it is specifically stated that that patch level does not run with Pega Platform).” Highlighted the text for your quick ref.
Garbage collection and its arguments are different between Java 8 & 11.
The garbage collection arguments in Java 8 and Java 11 differ in terms of the default garbage collector used. In Java 8, the default garbage collector is the Parallel collector, while in Java 11, it is the G1GC (Garbage-First Garbage Collector). Additionally, the way to enable GC logging also differs between the two versions.
In Java 8, you can enable GC logging using the following JVM arguments: -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:{file-path}, while in Java 11, you can use -Xlog:gc*:file={file-path}.
The main difference between them is that the parallel collector runs multiple threads to speed up garbage collection. This difference in the default garbage collector and the method to enable GC logging can impact the performance and monitoring of the application’s garbage collection process.
So, you may need to check the existing configuration and decide to update accordingly.
You can check the details about the Hazelcast at this Link.
Hazelcast 5.x version supports the following Java versions:
Based on the above information, while i couldnt find any resource / documentation saying issues with Java 8 in Pega 8.8, it looks more beneficial / futuristic considering Java version 11 for upgrade.
Hope this information helps you. Please share your thoughts and findings (issues / any other resources) as we are also embarking on a similar upgrade path.