hadoop-zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Zhuravlev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ZOOKEEPER-427) ZooKeeper server unexpectedly high CPU utilisation
Date Wed, 17 Jun 2009 22:18:07 GMT

     [ 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


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

View raw message