Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-184

There are a lot of connections are established after restarting Couchbase server

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.3.0-dp2
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Linux, HP-UX
      libcouchbase-2.0.3
      Couchbase Server 1.8.1

      Description

      1) Start Couchbase Server
      2) Start to recieve some key from Couchbase server using a client based on libcouchbase library. We use about 250 threads for receiving key
      3) Restart Couchbase server
      4) After that a lot of connections are created (all of then in ESTABLISHED state). And soon quota for handlers is over.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        trond Trond Norbye added a comment -

        I'm not sure I understand the problem here. Are you seeing all of the connections on the server node or on the client node (or is this the same machine)?

        If this is on the client nodes, are the "old" connections not properly shut down? or does it seem like it is creating multiple new connections per libcouchbase instance?

        Show
        trond Trond Norbye added a comment - I'm not sure I understand the problem here. Are you seeing all of the connections on the server node or on the client node (or is this the same machine)? If this is on the client nodes, are the "old" connections not properly shut down? or does it seem like it is creating multiple new connections per libcouchbase instance?
        Hide
        Haster Haster added a comment -

        The sockets are created on client side.
        We investigate this problem and found that this truble happend than we try to get many values from Couchbase.
        lcb_get();
        lcb_get();
        ...
        lcb_get();
        lcb_wait();
        And if we have temporary errors libcouchbase make reconnect many times.
        I don't know is this bug or not. But we avoid this problem by receiving one get a time and waiting if temporary error is happend

        Show
        Haster Haster added a comment - The sockets are created on client side. We investigate this problem and found that this truble happend than we try to get many values from Couchbase. lcb_get(); lcb_get(); ... lcb_get(); lcb_wait(); And if we have temporary errors libcouchbase make reconnect many times. I don't know is this bug or not. But we avoid this problem by receiving one get a time and waiting if temporary error is happend
        Hide
        mnunberg Mark Nunberg added a comment -

        I believe this should be fixed in the upcoming 2.3. Marking as resolved for .next

        Note you may still see a high amount of new connections being made, but it should certainly be lower.

        Show
        mnunberg Mark Nunberg added a comment - I believe this should be fixed in the upcoming 2.3. Marking as resolved for .next Note you may still see a high amount of new connections being made, but it should certainly be lower.

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            Haster Haster
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes