-
Suggestion
-
Resolution: Fixed
Problem Definition
The default Java 11 Garbage Collection Logging settings do not specify any custom sets of decorators.
...
CATALINA_OPTS="-Xloggc:$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M ${CATALINA_OPTS}"
...
As a result, default decorators would then be used - uptime, level, and tags. Please refer to the sample GC log snippet below:
... [1.374s][debug][gc,age] GC(0) Desired survivor size 3670016 bytes, new threshold 15 (max threshold 15) [1.583s][debug][gc,age] GC(1) Desired survivor size 3670016 bytes, new threshold 1 (max threshold 15) [2.020s][debug][gc,age] GC(2) Desired survivor size 17825792 bytes, new threshold 15 (max threshold 15) [2.767s][debug][gc,age] GC(4) Desired survivor size 18350080 bytes, new threshold 15 (max threshold 15) [4.238s][debug][gc,age] GC(5) Desired survivor size 22020096 bytes, new threshold 15 (max threshold 15) ...
Suggested Solution
To specify a set of decorators in the default Confluence's GC logging as well as to add time decorator, to show current time and date in ISO-8601 format.
This would be very helpful in troubleshooting performance related issues in Confluence.
Workaround
Modify the <Confluence-Installation>/bin/setenv.sh file as follow:
CATALINA_OPTS="-Xlog:gc+age=debug:file=$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log::filecount=5,filesize=2M ${CATALINA_OPTS}"
CATALINA_OPTS="-Xlog:gc*:file=$LOGBASEABS/logs/gc-%t.log:tags,time,uptime,level:filecount=5,filesize=2M ${CATALINA_OPTS}"
- is related to
-
CONFSERVER-61415 Java 11 Garbage Collection Logging Settings Are Not Correctly Applied on Confluence Start
-
- Closed
-
- relates to
-
CONFSERVER-79959 The default Java 11 Garbage Collection Logging Settings has the wrong syntax for filecount and filesize
-
- Closed
-
A fix for this issue is available in Confluence Server and Data Center 8.0.0.
Upgrade now or check out the Release Notes to see what other issues are resolved.