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 06-02-2009, 10:14 AM
Senior Member
 
Posts: 53
Question Java at 100% CPU for two days?

I've noticed that our Zimbra server has been running at an elevated load average for a couple days now, and have tracked it down to two java threads which are both running at 100% CPU (on our 8-core server).

The two threads in particular are:

Code:
 $ ps -efL | grep 3577
UID        PID  PPID   LWP  C NLWP STIME TTY          TIME CMD
zimbra   26328 26327  3577 98  257 Jun01 ?        1-03:22:46 /opt/zimbra/java/bin/java -Xms4816m -Xmx4816m -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k -Djava.io.tmpdir=/opt/zimbra/mailboxd/work -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/mailboxd/common/endorsed -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djetty.home=/opt/zimbra/mailboxd -DSTART=/opt/zimbra/mailboxd/etc/start.config -jar /opt/zimbra/mailboxd/start.jar /opt/zimbra/mailboxd/etc/jetty.properties /opt/zimbra/mailboxd/etc/jetty-setuid.xml /opt/zimbra/mailboxd/etc/jetty.xml
 $ ps -efL | grep 18198
UID        PID  PPID   LWP  C NLWP STIME TTY          TIME CMD
zimbra   26328 26327 18198 99  250 Jun01 ?        1-03:23:17 /opt/zimbra/java/bin/java -Xms4816m -Xmx4816m -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k -Djava.io.tmpdir=/opt/zimbra/mailboxd/work -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/mailboxd/common/endorsed -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djetty.home=/opt/zimbra/mailboxd -DSTART=/opt/zimbra/mailboxd/etc/start.config -jar /opt/zimbra/mailboxd/start.jar /opt/zimbra/mailboxd/etc/jetty.properties /opt/zimbra/mailboxd/etc/jetty-setuid.xml /opt/zimbra/mailboxd/etc/jetty.xml
I can't see anything obvious in the logs about why these two processes are going full-tilt. Is there anything specific I should be looking for?

Is it safe to kill -HUP or -TERM these threads, or should I just let it go until our next maintenance cycle when I can bounce the services?
__________________
Gregory K. Ruiz-Ade
Sr. Systems Administrator
Computer Science and Engineering
University of California, San Diego
Reply With Quote
  #2 (permalink)  
Old 06-08-2009, 01:25 PM
Outstanding Member
 
Posts: 594
Default

Do you have Parallel GC enabled ?

zmlocalconfig -e mailboxd_java_options="-client -XX:NewRatio=2 -XX:MaxPermSize=128m -Djava.awt.headless=true -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseParallelGC"

for more performance related refer to Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki
Reply With Quote
  #3 (permalink)  
Old 06-08-2009, 01:47 PM
Senior Member
 
Posts: 53
Default

Quote:
Originally Posted by veronica View Post
Do you have Parallel GC enabled ?

zmlocalconfig -e mailboxd_java_options="-client -XX:NewRatio=2 -XX:MaxPermSize=128m -Djava.awt.headless=true -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseParallelGC"

for more performance related refer to Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki
So, then, this is happening for JVM garbage collection?

Also, I'm assuming that this change won't take effect until I restart the zimbra services, too...
__________________
Gregory K. Ruiz-Ade
Sr. Systems Administrator
Computer Science and Engineering
University of California, San Diego
Reply With Quote
  #4 (permalink)  
Old 06-08-2009, 02:00 PM
Moderator
 
Posts: 7,928
Default

Yes you will need to restart ZCS.
__________________
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.