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

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 11-27-2009, 11:30 AM
Senior Member
 
Posts: 51
Default High idle load

Hi all

Testing on two separate servers, one dedicated and one VM, I get a very high load, mostly system time, while running Zimbra. Both systems are mostly idle, only having around 5-10 users, 2-3 concurrent users at most. I don't see a very high load in 'top', but using sysstat/sar, I see a stable load of 40-60% while idle. Looking into it, it looks like java processes are started routinely into new processes, and I suspect they are started like shell scripts or the likes, having to be precompiled each time. I also see new PIDs coming up all the time in top. Someone first suspected this was a memory problem (1GB RAM), but the same happens with 2GB and still with memory unallocated.

Is this meant to be so, and if so, who on earth thought this was a good idea? It's quite some amount of CPU being wasted in these runs. If not, what can I do about it without moving to another system?

roy
Reply With Quote
  #2 (permalink)  
Old 11-27-2009, 11:37 AM
raj raj is offline
Moderator
 
Posts: 768
Default

you did not tell what version and what os and other info, but maybe the following link will help you specially on VM install

High CPU spikes every 1 minute

* Please backup before trying any of the solution.

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #3 (permalink)  
Old 11-27-2009, 12:07 PM
Senior Member
 
Posts: 51
Default

Hi

Thanks for the quick reply

I'm running 6.0.3 (or was it 6.0.2?). the cron job is now changed, running every hour. But the zmlocalconfig/zmprov commands below doesn't seem to be right with v6. btw, what is the zmlogprocess?

roy

su - zimbra
zmlocalconfig -e zmmtaconfig_interval=6000
zmprov mcf zimbraLogRawLifetime 7d
zmprov mcf zimbraLogSummaryLifetime 30d
/opt/zimbra/libexec/zmlogprocess
Reply With Quote
  #4 (permalink)  
Old 11-27-2009, 12:23 PM
raj raj is offline
Moderator
 
Posts: 768
Default

did you get any error when you run those in version 6.xx or you are asking without running them?

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #5 (permalink)  
Old 11-27-2009, 12:27 PM
Senior Member
 
Posts: 51
Default

At first I didn't try, since I didn't find any docs about what they did. Now, I did try nevertheless and I got no errors.

zimbra@zimbra:~$ zmlocalconfig -e zmmtaconfig_interval=6000
zimbra@zimbra:~$ zmprov mcf zimbraLogRawLifetime 7d
zimbra@zimbra:~$ zmprov mcf zimbraLogSummaryLifetime 30d
zimbra@zimbra:~$ /opt/zimbra/libexec/zmlogprocess
zimbra@zimbra:~$

Can you please explain what they do?

I'll get back to you on performance data

thanks

roy
Reply With Quote
  #6 (permalink)  
Old 11-27-2009, 01:08 PM
Senior Member
 
Posts: 51
Default

Seems this solved the problem, see sar output below, but still, what does each of these commands do? I like at least to have an illusion that I'm in control of my system

roy

20:25:01 CPU %user %nice %system %iowait %steal %idle
20:35:01 all 9.79 0.00 54.07 1.63 0.00 34.50
20:45:01 all 9.87 0.00 50.60 1.97 0.00 37.56
20:55:01 all 5.20 0.00 36.48 1.78 0.00 56.54
21:05:02 all 0.98 0.00 7.39 2.39 0.00 89.25
21:15:01 all 0.58 0.00 4.88 1.37 0.00 93.16
Reply With Quote
  #7 (permalink)  
Old 12-01-2009, 12:08 PM
Moderator
 
Posts: 1,147
Default

I'll answer these from what I understand here...
Code:
zmlocalconfig -e zmmtaconfig_interval=6000
This sets the interval at which the zmmtaconfig process checks the postfix configuration files for changes and reloads them if there are any. This has been known to cause high CPU usage on some systems and is probably the only reason your CPU usage has dropped.
Code:
zmprov mcf zimbraLogRawLifetime 7d
This sets the maximum age for your log files, I'm not entierly sure what this would have to do with performance though as it just says when to delete the old log files. (7 days)
Code:
zmprov mcf zimbraLogSummaryLifetime 30d
Not entierly sure what this does as there is no "summary" log that I know of, but again from what I can find in the wiki this would only affect disk space usage, not CPU.
Code:
/opt/zimbra/libexec/zmlogprocess
From what I can see the only affect this would have is that it optimizes the logger tables when it runs, so it might have sped up access to them, thus slightly reducing CPU load on access to these tables.
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.