Results 1 to 4 of 4

Thread: Java at 100% CPU for two days?

  1. #1
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    7

    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

  2. #2
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    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

  3. #3
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    7

    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

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Yes you will need to restart ZCS.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] high cpu load java
    By nean in forum Installation
    Replies: 12
    Last Post: 10-13-2011, 07:47 AM
  2. Java eating up the CPU
    By Chewie71 in forum Administrators
    Replies: 13
    Last Post: 04-14-2009, 03:54 AM
  3. Replies: 0
    Last Post: 01-29-2009, 11:50 PM
  4. [SOLVED] Java Eating Up the CPU
    By Chewie71 in forum Administrators
    Replies: 6
    Last Post: 01-29-2009, 02:50 PM
  5. High CPU Load every couple of days
    By pornsakb in forum Administrators
    Replies: 13
    Last Post: 11-30-2007, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •