Hi,
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.
Zimbra 8.7.7 fast growing gc.log
Re: Zimbra 8.7.7 fast growing gc.log
There is a misconfiguration on zimbra 8.7 that I'm aware of. Look at the value of 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
Code: Select all
$ zmlocalconfig mailboxd_java_options
To turn it on, try: -XX:+UseGCLogFileRotation