-
Bug
-
Resolution: Fixed
-
Medium
-
7.0.0, 7.12.0
-
None
-
18
-
Severity 3 - Minor
-
70
-
Issue Summary
The default garbage collection configuration for Confluence running Java 11 is incorrectly applied resulting in unexpected logging formats.
Steps to Reproduce
- Make a change to setenv.sh with new Java 11 garbage collection logging configuration
- Start Confluence
- Check Garbage Collection logging
Expected Results
The new garbage collection configuration is reflected in the logging.
Actual Results
The default garbage collection settings for Java are reflected in the logs
Cause
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
Workaround
Confluence Version 7.11.latest and Earlier
Remove the old Java 8 garbage collection configuration which by default is
CATALINA_OPTS="-Xloggc:$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M ${CATALINA_OPTS}"
Add the following in place
CATALINA_OPTS="-Xlog:gc*:file=$LOGBASEABS/logs/gc-%t.log:tags,time,uptime,level:filecount=5,filesize=2M ${CATALINA_OPTS}"
Confluence Version 7.12.0 and Later
Comment out the old Java 8 garbage collection configuration which by default is
CATALINA_OPTS="-Xloggc:$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M ${CATALINA_OPTS}"
- depended on by
-
CONFSERVER-53524 Service.sh and setenv.bat files set different Java options
- Closed
- is related to
-
CONFSERVER-62338 Update Default Confluence Configuration
- Closed
- relates to
-
CONFSERVER-79959 The default Java 11 Garbage Collection Logging Settings has the wrong syntax for filecount and filesize
- Closed
-
CONFSERVER-79961 As an admin, I want date timestamps in Garbage Collection Logging to be enabled by default
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...