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
  #1 (permalink)  
Old 09-06-2009, 06:36 AM
Junior Member
 
Posts: 7
Default [SOLVED] ZCS 6.0 - zmlogger service using very high CPU

I have been running Zimbra for about 2 years now and have upgraded periodically throughout the 5.x code stream. I just upgraded Zimbra from 5.0.16 to "Release 6.0.0_GA_1802.RHEL5_64_20090830141723 FOSS edition" and have read about the changes to the zmlogger process.

My issue is that since the upgrade, the zmlogger process appears to be constantly using excessive CPU. Here is a typical output from the top command and this is pretty typical (going from 99% to 119% with each cycle):
Mem: 2051248k total, 1964088k used, 87160k free, 23248k buffers
Swap: 4095992k total, 0k used, 4095992k free, 630704k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6894 zimbra 25 0 54976 8772 2436 R 99.9 0.4 2:21.38 zmlogger

I have attached the output from the commands recommended by Zimbra from zmlogger troubleshooting section. Also, the /var/log/zimbra-stats.log file is growing extremely quickly and doesn't appear to be getting "logrotated".

As much as I like the new functionality, I think I may have pulled the trigger a little early upgrading from 5.0.16 to 6.0.

Thanks for any insight regarding this issue....

Regards,
Jeff (RHCE)
Attached Files
File Type: txt zmlogger troubleshooting output.txt (7.0 KB, 46 views)
Reply With Quote
  #2 (permalink)  
Old 09-07-2009, 05:34 AM
Junior Member
 
Posts: 7
Default

BUMP

Any ideas? I have gotten numerous Nagios emails about High Load. This morning my machine is practically nonresponsive and I will probably have to hard reboot.

Thanks,
Jeff
Reply With Quote
  #3 (permalink)  
Old 09-07-2009, 08:20 AM
Loyal Member
 
Posts: 94
Default

i noticed the same in my box, im running RHEL5 and Zimbra 6.0 (Community edition)

zmlogger take a lot of cpu.
Reply With Quote
  #4 (permalink)  
Old 09-07-2009, 09:27 AM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by gvillaran View Post
i noticed the same in my box, im running RHEL5 and Zimbra 6.0 (Community edition)

zmlogger take a lot of cpu.

I was having the same problem. I found a post by Raj that did the trick for me

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
Reply With Quote
  #5 (permalink)  
Old 09-07-2009, 09:43 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by gvillaran View Post
i noticed the same in my box, im running RHEL5 and Zimbra 6.0 (Community edition)

zmlogger take a lot of cpu.
You might also want to consider disabling any unnecessary services on your server (if they're not already disabled).
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 09-07-2009, 11:11 AM
Special Member
 
Posts: 139
Default

Quote:
Originally Posted by speedy3k View Post
I was having the same problem. I found a post by Raj that did the trick for me

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
-----------------------------------------------------
Ok. I had this issue & got it rectified by following above.
Reply With Quote
  #7 (permalink)  
Old 09-07-2009, 12:14 PM
Loyal Member
 
Posts: 94
Default

ok i did what u recommend me, i am looking that the logger service take cpu but not for to long now.
can someone explain me what we just change with those commands? im pretty new at zimbra.

thanks in advance
Reply With Quote
  #8 (permalink)  
Old 09-07-2009, 12:39 PM
Special Member
 
Posts: 139
Default

Quote:
Originally Posted by gvillaran View Post
ok i did what u recommend me, i am looking that the logger service take cpu but not for to long now.
can someone explain me what we just change with those commands? im pretty new at zimbra.

thanks in advance
Check the Original Thread as follows

High CPU spikes every 1 minute
Reply With Quote
  #9 (permalink)  
Old 09-07-2009, 12:49 PM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by speedy3k View Post
I was having the same problem. I found a post by Raj that did the trick for me

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
Thanks for the reply. I made the necessary changes. the zmlogger process still consumes a lot of CPU periodically but it does finally free up CPU resources when watching it under "top". My "sar" graphs now show a more normalized CPU usage across the 4 CPUs. It still does take significantly more CPU than my pre Zimbra 6.0 (5.0.16) CPU load graphs. My other services don't need to be disabled since the only server that really ever consumes CPU (other than Zimbra) is my Netapp simulator. Hopefully as Zimbra 6.x matures, the zmlogger process issues will be addressed.
l l
Thanks again,
Jeff

PS - The /var/log/zimbra-stats.log appears to still be growing very fast. From 14:32 to 15:47 and the log is already just shy of 9MB.
Reply With Quote
  #10 (permalink)  
Old 09-07-2009, 05:13 PM
Special Member
 
Posts: 139
Default

Ok.

Beginning with 6.0, the architecture of the logger service has changed
This is as explained in release note & following wiki.So future releases should take care of this.

Main Page - Zimbra :: Wiki
index.php?title=Logger%28GnR%29).
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.