You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Satish Bhatti (JIRA)" <ji...@apache.org> on 2009/06/02 23:03:07 UTC

[jira] Created: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

ZooKeeper server unexpectedly high CPU utilisation
--------------------------------------------------

                 Key: ZOOKEEPER-427
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
             Project: Zookeeper
          Issue Type: Bug
    Affects Versions: 3.1.1
         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)

            Reporter: Satish Bhatti


I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:

 PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
 6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java

It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Satish Bhatti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715698#action_12715698 ] 

Satish Bhatti commented on ZOOKEEPER-427:
-----------------------------------------

I ran: strace -o zookeeper-strace.log -p6883

So far nothing in the logfile.

less zookeeper-strace.log

futex(0x404079d0, FUTEX_WAIT, 6884, NULL


> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715714#action_12715714 ] 

Mahadev konar commented on ZOOKEEPER-427:
-----------------------------------------

satish for strace 

you will have to do an strace on all the pid's in

/proc/6883/tasks/

to see which of the threads is spinning and on what... 

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Satish Bhatti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715723#action_12715723 ] 

Satish Bhatti commented on ZOOKEEPER-427:
-----------------------------------------

oops!  Sorry, Mahadev, I already bounced that zookeeper server, (it's a production server, so I didn't want to leave it flapping for too long)  and it's been behaving well since.  If I can reproduce the problem I will run strace as you have suggested.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715731#action_12715731 ] 

Mahadev konar commented on ZOOKEEPER-427:
-----------------------------------------

no worries satish,
 I hope we could have gotten that trace though... We had seen similar behavior in another jira ZOOKEEPER-287, and wanted to make sure if both are caused by similar problems. I have linked these two together. Do update the jira in case you run into this again.



> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715693#action_12715693 ] 

Mahadev konar commented on ZOOKEEPER-427:
-----------------------------------------

satish, can you just try strace to see which one of thread is spinning? 
also, with the log files it seems like you are doing a lot of trasactions through some other zookeeper server? 

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721454#action_12721454 ] 

Hadoop QA commented on ZOOKEEPER-427:
-------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12411045/ZOOKEEPER-427.patch
  against trunk revision 786156.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no tests are needed for this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-vesta.apache.org/124/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-vesta.apache.org/124/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-vesta.apache.org/124/console

This message is automatically generated.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Sergey Zhuravlev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Zhuravlev updated ZOOKEEPER-427:
---------------------------------------

    Attachment: zk_quorum_recv_eof.patch

Hi!

I think, that problem is not in nio, but in QuorumCnxManager.

Manager start while-loop when channel is connected and start wait msgLength in read call.
At this moment process from other side stops and "read" return "-1"
But there is no checking of "read" return value, so loop become infinite.

Please, look at my patch, it works for my case.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Benjamin Reed
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-427:
------------------------------------

    Fix Version/s: 3.2.0

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Reed updated ZOOKEEPER-427:
------------------------------------

    Hadoop Flags: [Reviewed]

+1 great catch! thanx for the patch!

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-427:
------------------------------------

    Priority: Blocker  (was: Major)

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavio Paiva Junqueira updated ZOOKEEPER-427:
---------------------------------------------

    Assignee: Flavio Paiva Junqueira  (was: Benjamin Reed)
      Status: Patch Available  (was: Open)

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavio Paiva Junqueira updated ZOOKEEPER-427:
---------------------------------------------

    Attachment: ZOOKEEPER-427.patch

+1, great catch! As the original patch does not apply correctly and doesn't have the correct file name, I'm uploading a new patch. Unit tests pass for me just fine.



> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Benjamin Reed
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Reed updated ZOOKEEPER-427:
------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed revision 786251.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Satish Bhatti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Satish Bhatti updated ZOOKEEPER-427:
------------------------------------

    Attachment: zoo.cfg

Attached zoo.cfg file.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Satish Bhatti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Satish Bhatti updated ZOOKEEPER-427:
------------------------------------

    Attachment: zookeeper.log
                zookeeper-jstack.log

Attached a jstack and the zookeeper logfile.

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>         Attachments: zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722554#action_12722554 ] 

Hudson commented on ZOOKEEPER-427:
----------------------------------

Integrated in ZooKeeper-trunk #354 (See [http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/354/])
    

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Flavio Paiva Junqueira
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: zk_quorum_recv_eof.patch, zoo.cfg, ZOOKEEPER-427.patch, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt reassigned ZOOKEEPER-427:
--------------------------------------

    Assignee: Benjamin Reed

> ZooKeeper server unexpectedly high CPU utilisation
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-427
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-427
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Linux: 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
>            Reporter: Satish Bhatti
>            Assignee: Benjamin Reed
>         Attachments: zoo.cfg, zookeeper-jstack.log, zookeeper.log
>
>
> I am running a 5 node ZooKeeper cluster and I noticed that one of them has very high CPU usage:
>  PID   USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+   COMMAND 
>  6883  infact       22   0   725m  41m  4188 S   95       0.5          5671:54  java
> It is not "doing anything" application-wise at this point, so I was wondering why the heck it's using up so much CPU.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.