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 06-12-2008, 01: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, 05: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, 07: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, 09:47 AM
New Member
 
Posts: 3
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
  #5 (permalink)  
Old 12-14-2009, 05:44 AM
Active Member
 
Posts: 43
Default

We have the same problem in 6.0.3 version on Ubuntu 8.04.
It seems that this is the bug:
Bug 34040 – Zimbra java consumes all memory on Ubuntu 8.0.4 64bit
Reply With Quote
  #6 (permalink)  
Old 08-28-2010, 01:44 PM
Intermediate Member
 
Posts: 23
Smile /opt/zimbra/java/bin/java -XX:ErrorFile=/opt/zimbra/log -client -Xmx256m -Dzimbra.

Hi

I would like to share with all of you the resolution of the same problem described in this forum post.

Infact I had the same problem with the high usage of the cpu with an email message:
/opt/zimbra/java/bin/java -XX:ErrorFile=/opt/zimbra/log -client -Xmx256m -Dzimbra.

The resolution was to install:

Apache Ant

It is a required package for Zimbra.
The install.sh script do not check for it and so the installation get place with no error.

Good use is to read the readme file included in the Zimbra ZCS Folder with all the indication and prerequisite

Regards

Alex
Reply With Quote
  #7 (permalink)  
Old 08-28-2010, 11:57 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by alex70 View Post
The resolution was to install:

Apache Ant

It is a required package for Zimbra.
The install.sh script do not check for it and so the installation get place with no error.
Apart from the fact this thread has already been solved and it's over two years old, there is no requirement to install Apache Ant for a working Zimbra installation unless you are building it from source.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 08-29-2010, 07:15 AM
Intermediate Member
 
Posts: 23
Default

sorry If I attached a reply to a post already close but I thought it gave more sense to share my experience in a thread where this problem was already spoken. Probabily you are right but for the moment I have no more problem with the high usage of cpu by java. Furthermore this problem seems to still exist as described in Bug 34040 – Zimbra java consumes all memory on Ubuntu 8.0.4 64bit.
Reply With Quote
  #9 (permalink)  
Old 08-29-2010, 07:36 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by alex70 View Post
sorry If I attached a reply to a post already close but I thought it gave more sense to share my experience in a thread where this problem was already spoken. Probabily you are right but for the moment I have no more problem with the high usage of cpu by java. Furthermore this problem seems to still exist as described in Bug 34040 – Zimbra java consumes all memory on Ubuntu 8.0.4 64bit.
That's fine and the problem may exist as per that bug report but you've posted in this thread that Apache Ant is a prerequisite for Zimbra when it not required at all.

If you think that by installing Apache Ant your problem has been resolved then you should add the information to that bug report with a full description of what you did with complete steps to reproduce the fix and details of why you think the problem went away.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 09-01-2010, 01:26 AM
Intermediate Member
 
Posts: 23
Default

Phoenix you were right. This morning I had again the same problem so as you say Apache Ant is not the resolution.

At this point If you want, delete my previous post.

Thanks

Best Regards,

Alex
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.