Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: zcs 7.1.2 high CPU loading used by java process

  1. #1
    cadi-its is offline Starter Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    3

    Default zcs 7.1.2 high CPU loading used by java process

    Hi all,

    The following java process using almost 100% CPU resource, and I can't find a correct solution, any one can help? Thanks a lot.

    Code:
    zimbra    7882 54.8 19.1 1471388 392812 ?      Sl   09:03 224:47 /opt/zimbra/java/bin/java -Dfile.encoding=UTF-8 -server -Djava.awt.headless=true -Dsun.net.inetaddr.ttl=60 -XX:+UseConcMarkSweepGC -XX:PermSize=128m -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:-OmitStackTraceInFastThrow -Xss256k -Xms512m -Xmx512m -Xmn128m -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

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    Default

    Quote Originally Posted by cadi-its View Post
    The following java process using almost 100% CPU resource, and I can't find a correct solution, any one can help?
    This has been covered in the forums, you need to upgrade to the most recent Zimbra release.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    bofh is offline Elite Member
    Join Date
    May 2010
    Posts
    272
    Rep Power
    5

    Default

    same issue here - specially with bigger attachments about 1-2mb
    and it is the latest realease already so its not solved

  4. #4
    cadi-its is offline Starter Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    3

    Default

    it seems the problem is fixed by 7.1.3 upgrade

  5. #5
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,316
    Rep Power
    13

    Default

    There's a patch for 7.1.3 (not just 7.1.3) that helps fixing this issue.

  6. #6
    ulaaser is offline New Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    3

    Default Problem persists in newest version with patch

    Hi,

    i have installed newest ZCS with the patch in Centos 6.0 64bit inside Esxi 4.0 with 2vCPU and 6GB RAM.

    I still getting high cpu loads... and after a few hours,server becomes unresponsive and i have to connect trough esxi to restart the server, after that the server works fine again for a few hours...

    Release 7.1.3_GA_3346.RHEL6_64_20110928134428 CentOS6_64 FOSS edition, Patch 7.1.3_P1.

    executing "top" i have (more and more) multiple instances of /opt/zimbra/java/bin/java -version (each of them trying to maxout cpu usage!)

    Can i stop this processes manually... kill -procid?

  7. #7
    ulaaser is offline New Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    3

    Default Workaround

    Well i see that there are being created several java processes (using top)

    all of them maxing out cpu usage permanently...
    in normal situation the java proceses runs only seconds and are closed normally, but some processes are not closed....
    specially the ones calles java -version
    so i created a crontab using
    crontab -e as root.

    and put inside the following line:
    * */2 * * * kill -9 `ps -ef | grep 'java -version' | grep -v grep | awk '{print $2}'`

    so in my case im killing this processes every 2 hours...
    and because i am not so overloaded with users, i also do a reboot at 3:50am

    50 3 * * * /sbin/reboot

    i also was trying to kill another cpu hungry thread with

    kill -9 `ps -ef | grep 'java -XX' | grep -v grep | awk '{print $2}'`

    but this causes the zmconfigd to stop...

    so the first 2 lines are enough for me...

  8. #8
    Brad46526 is offline Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    4

    Default

    I have this exact same problem, running what I believe is the latest version of ZCS on Centos 6 - version 7.1.3 with the 7.1.3_P1 patch.

    'zmcontrol -v' shows the version of ZCS that I am running:

    Release 7.1.3_GA_3346.RHEL6_64_20110928134428 CentOS6_64 FOSS edition, Patch 7.1.3_P1.

    I find that, every few hours, I'll have a java process in an infinite loop, taking 100% of a CPU. Usually the process is simply running java with a '-version' option (called by zmlocalconfig); once or twice it's been a java process kicked off by something else.

    Sending a SIGHUP or SIGTERM to the java process doesn't affect it; I have to slay it with a SIGKILL. Which kills the process and returns my machine's CPU usage to normal ... until the next time.

    Right after killing the runaway process I can manually run the command pipeline that zmlocalconfig invokes:

    /opt/zimbra/java/bin/java -version 2>&1 | grep "java version" | sed -e 's/"//g' | awk '{print $NF}' | awk -F_ '{print $1}'

    But it runs fine (printing 1.6.0 to stdout).

    Is there a fix for this problem? Thanks!

    EDITED TO ADD:

    Just 30 mins or so later another runaway java process has taken off on my ZCS server; this time it's been kicked off by zmstatctl; here's a line of output from 'pstree -p':

    -java(13587)-+-zmstatctl(29602)---java(29605)-+-{java}(29625)

    In this case the java process has been passed more than just the '-version' option:

    /opt/zimbra/java/bin/java -XX:ErrorFile=/opt/zimbra/log -client -cp /opt/zimbra/lib/jars/zimbracommon.jar:/opt/zimbra/lib/jars/zimbrasoap ...

    It seems to be an intermittent problem with basic java itself?

    I'm running Centos 6; this is the output of 'uname -a':

    Linux centos6.test.com 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux

    Thanks for any help!
    Last edited by Brad46526; 01-02-2012 at 12:09 AM.

  9. #9
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,316
    Rep Power
    13

  10. #10
    Brad46526 is offline Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    4

    Default

    Hmm. My ZCS server is totally quiescent; it's a test server with no message traffic, no users, at all at the moment. Just its own internal processes, which includes the periodic stats collection and other things which run and occasionally kick off an infinite-looping java process.

    Still, I didn't know that 7.1.4 is out (novice Zimbra admin here); I'll have to aggressively look for and apply upgrades if the problem persists.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Unable to start all of the blackberry services
    By scasperson in forum Zimbra Connector for BlackBerry
    Replies: 8
    Last Post: 11-18-2011, 07:30 AM
  2. CPU Consume is High process Jetty
    By mtimbi@ups.edu.ec in forum Administrators
    Replies: 2
    Last Post: 06-21-2011, 08:33 AM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. Can't seem to get global in BES
    By sdemeyer in forum Zimbra Connector for BlackBerry
    Replies: 12
    Last Post: 03-19-2008, 08:22 AM

Tags for this Thread

Posting Permissions

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