The default garbage collection configuration for Confluence running Java 11 is incorrectly applied resulting in unexpected logging formats.
- Make a change to setenv.sh with new Java 11 garbage collection logging configuration
- Start Confluence
- Check Garbage Collection logging
The new garbage collection configuration is reflected in the logging.
The default garbage collection settings for Java are reflected in the logs
Java 8 and prior used the -Xloggc: syntax for formatting garbage collection log locations. With the introduction of Java 11, the syntax was moved to -Xlog:gc (note the moved colon). In order to maintain some backwards compatibility, the -Xloggc: syntax was remapped to the default Java 11 configuration. This configuration overrides anything else configured with the new syntax.
Details of this change are briefly mentioned at https://bugs.openjdk.java.net/browse/JDK-8170636
Remove the old Java 8 garbage collection configuration which by default is
Add the following in place
Comment out the old Java 8 garbage collection configuration which by default is