ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-662

Too many CLOSE_WAIT socket state on a server

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.4.0
    • Component/s: quorum
    • Labels:
      None
    • Environment:

      Linux 2.6.9

    • Tags:
      CLOSE_WAIT, client port

      Description

      I have a zookeeper cluster with 5 servers, zookeeper version 3.2.1, here is the content in the configure file, zoo.cfg

      ======

      1. The number of milliseconds of each tick
        tickTime=2000
      2. The number of ticks that the initial
      3. synchronization phase can take
        initLimit=5
      4. The number of ticks that can pass between
      5. sending a request and getting an acknowledgement
        syncLimit=2
      6. the directory where the snapshot is stored.
        dataDir=./data/
      7. the port at which the clients will connect
        clientPort=8181
      1. zookeeper cluster list
        server.100=10.23.253.43:8887:8888
        server.101=10.23.150.29:8887:8888
        server.102=10.23.247.141:8887:8888
        server.200=10.65.20.68:8887:8888
        server.201=10.65.27.21:8887:8888
        =====

      Before the problem happened, the server.200 was the leader. Yesterday morning, I found the there were many sockets with the state of CLOSE_WAIT on the clientPort (8181), the total was over about 120. Because of these CLOSE_WAIT, the server.200 could not accept more connections from the clients. The only thing I can do under this situation is restart the server.200, at about 2010-02-01 06:06:35. The related log is attached to the issue.

      1. zookeeper.log.2010020105
        352 kB
        Qian Ye
      2. zookeeper.log.2010020106
        199 kB
        Qian Ye

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Qian Ye
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development