I was searching for threads related to reducing CPU usage in Zimbra 8 and ran into this post about reducing memory usage. Not sure how much it reduces CPU usage, but I haven’t had any warnings from my VPS provider since implementing these changes.
Stop zimbra
zmcontrol stop
zmlocalconfig -e tomcat_java_heap_memory_percent=40 zmlocalconfig -e mysql_memory_percent=10 zmlocalconfig -e mysql_table_cache=250 zmlocalconfig -e mailboxd_java_heap_memory_percent=10 zmlocalconfig -e zmmtaconfig_interval=7200 zmlocalconfig -e zmmtaconfig_interval=600 zmprov mcf zimbraLogRawLifetime 7d zmprov mcf zimbraLogSummaryLifetime 30d
Edit /opt/zimbra/conf/my.cnf
threadcache = 20 maxconnections = 20
Edit /opt/zimbra/conf/amavisd.conf.in
$max_servers = 10; to: $max_servers = 2;
Login into Zimbra account, update crontab entries
Change */2 * * * * /opt/zimbra/libexec/zmstatuslog to
*/60 * * * * /opt/zimbra/libexec/zmstatuslog
change 00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess to
*/15 * * * * /opt/zimbra/libexec/zmlogprocess
Start zimbra
zmcontrol start
If the above still doesn’t work, you can disable the logger service.
zmprov ms <hostname> -zimbraServiceEnabled logger
and to check for enabled services
zmprov gs <hostname> | grep zimbraServiceEnabled
Reference: