Zimbra 8.7.7 fast growing gc.log

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 11:25 pm

Zimbra 8.7.7 fast growing gc.log

Postby mfehr » Tue Apr 18, 2017 2:35 pm


I upgraded from 8.6 to 8.7.7 on Ubuntu 14. Since the upgrade, I notice a fast growing /opt/zimbra/log/gc.log file. The garbage collector reports every 2 seconds a line with stats. Within 48 hours, the gc.log file already became 2.2 MB in size. It does not seem to autorotate. So if not monitored / actionned regularely, this seems to be eating up disk space.

How can the gc.log logging be turned off?

A quick and dirty approach is to reset the file once a day, driven by a cron job e.g. "> /opt/zimbra/log/gc.log 2>&1". However, this still would generate intense logging with little to no use for regular operations. I prefer to address the root cause rather than implementing a work around.

Posts: 12
Joined: Sat Sep 13, 2014 3:26 am
ZCS/ZD Version: 8.7.10

Re: Zimbra 8.7.7 fast growing gc.log

Postby hoomanv » Thu Apr 26, 2018 8:03 am

There is a misconfiguration on zimbra 8.7 that I'm aware of. Look at the value of mailboxd_java_options

Code: Select all

$ zmlocalconfig mailboxd_java_options

Do you see -XX:-UseGCLogFileRotation among the options? The hyphen behind the UseGCLogFileRotation will actually turn log file rotation off.
To turn it on, try: -XX:+UseGCLogFileRotation

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 9 guests