| Zimbra: High CPU spikes every 1 minute |
|
|
|
| Saturday, 28 March 2009 11:33 | |||||
Zimbra Version 5.0.14
I encountered a problem on my VM which is running Zimbra . #*/2 * * * * /opt/zimbra/libexec/zmstatuslog #*/10 * * * * /opt/zimbra/libexec/zmdisklog #00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1 00,20,40 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1 #0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog 10,30,50 * * * * /opt/zimbra/libexec/zmqueuelog
- "$ zmloggerctl stop" did not help #my $rawRetention = `${zimbra_home}/bin/zmprov -l gacf | egrep '^zimbraLogRawLifetime' | sed -e 's/zimbraLogRawLifetime: //'`;
my $rawRetention = "31d";
#my $summaryRetention = `${zimbra_home}/bin/zmprov -l gacf | egrep
'^zimbraLogSummaryLifetime' | sed -e 's/zimbraLogSummaryLifetime: //'`;
my $summaryRetention = "730d";
But then I found it. The zmmtaconfig has a watchdog process that will run every sixty seconds and restart services if they have crashed. I haven't had the services crash so I changed the value to five minutes. If you care about uptime should a service crash you shouldn't change this. However depending on when the service crashed it could be restarted sooner than five minutes. # su - zimbra # zmlocalconfig -e zmmtaconfig_interval=300 .. This is what someone else configured to overcome these problems and boost performance:
su - zimbra Zimbra Version 6.0.1
After updating Zimbra 5.0.14 to 6.0.1 I ran into a same sort of problem again. The zimbralogger was using the CPU like crazy. $ su - zimbra $ zmprov ms fill_in_your_hostname -zimbraServiceEnabled logger Then as the root user edit /etc/logrotate.d/zimbra and comment out all logger related start / reload commands e.g. # su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true # su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl start" Now I got a great load average once again: 0.03, 0.10, 0.21
Zimbra Version 6.0.7 (20 aug 2010)Still the same issues after installing v 6.0.7 on a Fedora Core 11 x64 virtual machine on ESX4.1. Applied the same tricks to bring down CPU usage.
Zimbra Version 7.0.0 (07 febr 2011)Looks like the problem is solved in version 7.0.0, read more here. I upgraded from version 6.0.10 and the cpu spikes are not there anymore.. And finally an upgrade introduced some new interesting features.
|
Comments
Cheers!
followed these instructions and nice and steady now (with only 1 CPU)
Zimbra's an awesome product - but the CPU usage issue is pretty tragic compared to most mailservers!
Cheers - Andy ( http://www.gadgetaccess.com )
zmlocalconfig -e zmmtaconfig_wat chdog=FALSE
RSS feed for comments to this post