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 Display Modes
  #1 (permalink)  
Old 06-12-2008, 02:59 PM
New Member
 
Posts: 4
Default [SOLVED] high cpu load java

I have a problem with some perseverative (about every 60sec) java process which produce temporary high cpu load. (zcs-5.0.5_GA_2201.UBUNTU8.FRANKLIN on ubuntu hardy 8.04 Celeron(R) CPU 2.00GHz/1,5GB RAM)

Code:
97.5% /opt/zimbra/java/bin/java -XX:ErrorFile=/opt/zimbra/log -client -Xmx256m -Dzimbra.home=/opt/zimbra -Djava.library.path=/opt/zimbra/lib -Djava.ext.dirs=/opt/zimbra/java/jre/lib/ext:/opt/zimbra/lib/jars:/opt/zimbra/lib/ext:/opt/zimbra/lib/ext/clamscanner com.zimbra.cs.account.ProvUtil -l garpu
has someone any ideas?

first i tried to upgrade to zcs-5.0.6_GA_2314.UBUNTU8.FRANKLIN to see if its better, but it has not worked and i made a rollback.
i also had problems with my symbolic link which is not supported -> Bug 14725 - Installer fails to follow and destroyes symbolic links
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 06:57 AM
New Member
 
Posts: 4
Default

i found out that /var/opt/zimbra/bin/zmprov produces high CPU Load
cat /var/opt/zimbra/bin/zmprov
Code:
exec `dirname $0`/zmjava com.zimbra.cs.account.ProvUtil "$@"
Code:
zimbra   10464  0.0  0.0   1772   492 ?        Ss   14:20   0:00      \_ /bin/sh -c /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1
zimbra   10465  5.3  0.3   8148  5036 ?        S    14:20   0:00          \_ /usr/bin/perl /opt/zimbra/libexec/zmlogprocess
zimbra   10552  0.0  0.0   1780   496 ?        S    14:20   0:00              \_ sh -c /opt/zimbra/bin/zmprov -l gacf | egrep '^zimbraLogRawLifetime' | sed -e 's/zimbraLogRawLifetime: //'
zimbra   10553 81.3  1.7 428760 24532 ?        Sl   14:20   0:02                  \_ /opt/zimbra/java/bin/java -XX:ErrorFile=/opt/zimbra/log -client -Xmx256m -Dzimbra.home=/opt/zimbra -Djava.library.path=/opt/zimbra/lib -Djava.ext.dirs=/opt/zimbra/java/jre/lib/ext:/opt/zimbra/lib/jars:/opt/zimbra/lib/ext:/opt/zimbra/lib/ext/clamscanner com.zimbra.cs.account.ProvUtil -l gacf
so i prevent that zmprov is used in certain periodic script, and modifies some variables with hardcoded standard values eg. in /opt/zimbra/libexec/zmlogprocess

Code:
#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/zimbraLogSummaryLife
my $summaryRetention = "730d";
Reply With Quote
  #3 (permalink)  
Old 08-01-2008, 08:14 AM
Starter Member
 
Posts: 1
Thumbs up Thank you!

Thank for you're solution, it's work here.
Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 10:47 AM
Starter Member
 
Posts: 1
Default

I've tracked a similar problem down on 8.04.1 x86_64 and found that calls to /opt/zimbra/libexec/zmmtaconfig cause massive spikes in CPU usage. That file contains several references to zmprov which I presume is causing the same sort of delays as experiences by the original poster.

Does anyone have any advice on how to circumvent calls to zmprov?
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0