How to Enable Garbage Collection (GC) Logging for Synchrony process
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
目的
Staring in Confluence 7.20, if Synchrony is managed by Confluence (the most common setup), you can make changes to Synchrony JVM flags by updating:
<CONFLUENCE_HOME>/synchrony-args.properties
(for Confluence Server); or<CONFLUENCE_SHARED_HOME>/synchrony-args.properties
(for Confluence Data Center environment)
This new feature was introduced by the implementation of CONFSERVER-53548 - Getting issue details... STATUS
The following instructions are applicable for JDK8 and JDK11/17, depending on the version used by your Confluence instance.
Linux
To configure Synchrony JVM arguments in Linux installations:
- Edit the relevant
synchrony-args.properties
file (see above) Add in these lines (substitute both
<CONFLUENCE_INSTALL>
with the actual Confluence Install Directory):- Navigate to Confluence Administration » General Configuration » Collaborative Editing
- Click Restart Synchrony
- Check that the
<CONFLUENCE_INSTALL>/logs
contains newly createdsynchrony-gc-*
files
If Confluence is running in a Cluster, you will need to restart Synchrony process on each Node (one at a time).
Windows
To configure Synchrony JVM arguments in Windows installations:
- Edit the relevant
synchrony-args.properties
file (see above) Add in these lines (substitute both
<CONFLUENCE_INSTALL>
with the actual Confluence Install Directory):- Navigate to Confluence Administration » General Configuration » Collaborative Editing
- Click Restart Synchrony
- Check that the
<CONFLUENCE_INSTALL>\logs
contains newly createdsynchrony-gc-*
files
If Confluence is running in a Cluster, you will need to restart Synchrony process on each Node (one at a time).
Differences between JDK 8 and JDK11/17
For further information about the different GC configuration between JDK8 and JDK11/17, please check our KB Unrecognized JVM GC options when using JDK 11/17