Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-14-2009, 08:37 PM
New Member
 
Posts: 3
Default

Quote:
Originally Posted by mrcoffe View Post
Hi there,

Seting up Zimbra for testing a possible new email environment for the company.

I got a problem on my VM which is running Zimbra .
Every 1 minute I got a cpu spike of around 70% to 80% 24hrs a day and I don't know why. Looks lika a JAVA process is responsible for this when I watch TOP output. I would like to get rid of this!

changes that did not help:
- 'Sleep time between subsequent mailbox purges' from 1 minute to 1 hour

- fetchmail from 1 minute to 5 minutes

- disabling or editing cronjobs:
#*/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

- vi /opt/zimbra/libexec/zmlogprocess
#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";

Specs:
Using Zimbra 5.0.10
FedoraCore 7
VMware ESX Virtual machine 1 CPU 3Ghz
Nr of users: 1

Any suggestions??
Thx
Interesting I have had similar issues before...
Reply With Quote
  #12 (permalink)  
Old 02-16-2009, 11:59 AM
Active Member
 
Posts: 39
Default

I had to make a couple of changes before the CPU usage dropped. I am running Zimbra in a VM for a handful of email accounts so the CPU spikes were disappointing since my other VMs basically idle all day.

1) As commented on above the zmprov is a java process which taxes the CPU. This will bring down the CPU usage, however if you change the values down the road you will need to edit zmlogprocess to reflect them.

Code:
vim /opt/zimbra/libexec/zmlogprocess
#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";
2) zmstatuslog is a java process that prints the status into the log file. From what I understand the admin gui grabs this info from the log file to show the current service status. I don't see the point to have this run every two minutes and changed it to five minutes.

original
Code:
su - zimbra; crontab -e
*/2 * * * * /opt/zimbra/libexec/zmstatuslog
changed
Code:
su - zimbra; crontab -e
*/5 * * * * /opt/zimbra/libexec/zmstatuslog
3) 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.

original
Code:
su - zimbra
zmlocalconfig -e zmmtaconfig_interval=""
changed
Code:
su - zimbra
zmlocalconfig -e zmmtaconfig_interval=300
Reply With Quote
  #13 (permalink)  
Old 03-09-2009, 12:43 AM
Intermediate Member
 
Posts: 19
Default

are there any accounts having filters as **** in it if so there is a bug in zimbra whcih causese cpu spike and a filter that was causing some kind of recursion problem in the server.
Reply With Quote
  #14 (permalink)  
Old 03-09-2009, 01:20 AM
Moderator
 
Posts: 7,911
Default

What is the reference for that bug as I could not find it ?

Also would you all please update your profiles with the following output so which know which version of ZCS you are running please
Code:
su - zimbra
zmcontrol -v
__________________
Reply With Quote
  #15 (permalink)  
Old 03-09-2009, 03:59 AM
Intermediate Member
 
Posts: 19
Default

Bug 35983 – Filter match strings with multiple "*" characters cause thread hangs
Reply With Quote
  #16 (permalink)  
Old 03-09-2009, 05:54 AM
Zimbra Consultant & Moderator
 
Posts: 19,559
Default

If you want to see some progress on that bug you should vote on it.
__________________
Regards


Bill
Reply With Quote
  #17 (permalink)  
Old 03-28-2009, 04:33 AM
Member
 
Posts: 10
Default

This one seems to be the way to tweak it

su - zimbra
zmlocalconfig -e zmmtaconfig_interval=300

Thnx!
Reply With Quote
  #18 (permalink)  
Old 05-05-2009, 02:39 PM
Senior Member
 
Posts: 54
Default

Hi. We also have this problem:

zmcontrol -v:
Release 5.0.15_GA_2851.UBUNTU8_64 UBUNTU8_64 NETWORK edition

Tried the solution with:
zmlocalconfig -e zmmtaconfig_interval=300

This gives less frequently spikes but they are still there. Can't use this in a production environment...
Reply With Quote
  #19 (permalink)  
Old 05-05-2009, 05:27 PM
raj raj is offline
Moderator
 
Posts: 758
Default

i do this on VM or Physical servers. zmmtaconfig_interval is high as we dont need to check if services are failing and we need to restart.
zimbraLogRawLifetime dont need more than 7 days of logdata and more than 30 days of summry.

all the following helps.

Quote:
su - zimbra
zmlocalconfig -e zmmtaconfig_interval=6000
zmprov mcf zimbraLogRawLifetime 7d
zmprov mcf zimbraLogSummaryLifetime 30d
/opt/zimbra/libexec/zmlogprocess

su - zimbra
crontab -e
*/60 * * * * /opt/zimbra/libexec/zmstatuslog

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #20 (permalink)  
Old 05-06-2009, 06:55 AM
Senior Member
 
Posts: 54
Default

Thanks for your reply. Your solution got rid of the spikes. Thanks! Can you tell me more spesific what disadvantages this solution gives us? I understand that services will be checked less frequently but I want more information please

And why does it spike like this in the first place? Bug?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.