Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-18251

cbq-engine consumes all 11210 connections on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.1.1, 4.5.0
    • 4.0.0, 4.1.0, 4.5.0
    • query
    • Security Level: Public
    • Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601
    • Untriaged
    • Windows 64-bit
    • Unknown

    Description

      On Windows installs cbq-engine.exe opens and then leaks a new connection to memcached (port 11210) for each query.

      Steps to reproduce:

      • Simple .NET application (attached) performs queries against a bucket object returned by ClusterHelper.
      • Confirm number of open connections from .NET application to 8093:

        C:\Windows\system32>tasklist /V /fo list /FI "PID eq 3980"
         
        Image Name:   ConsoleApplication1.vshost.exe
        PID:          3980
        Session Name: Console
        Session#:     1
        Mem Usage:    40,928 K
        Status:       Running
        User Name:    COUCHBASE\couchbase
        CPU Time:     0:00:00
        Window Title: file:///C:/Users/couchbase/Documents/Visual Studio 2013/Projects/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.EXE
        

        C:\Windows\system32>netstat -ano | findstr 8093
          TCP    0.0.0.0:8093           0.0.0.0:0              LISTENING       4472
          TCP    0.0.0.0:18093          0.0.0.0:0              LISTENING       4472
          TCP    10.0.2.15:8093         10.0.2.2:49223         ESTABLISHED     4472
          TCP    10.0.2.15:8093         10.0.2.2:65212         ESTABLISHED     4472
          TCP    10.0.2.15:8093         10.0.2.2:65240         ESTABLISHED     4472
          TCP    10.0.2.15:8093         10.0.2.2:65277         ESTABLISHED     4472
          TCP    127.0.0.1:8093         127.0.0.1:52689        ESTABLISHED     4472
          TCP    127.0.0.1:8093         127.0.0.1:56639        ESTABLISHED     4472
          TCP    127.0.0.1:52689        127.0.0.1:8093         ESTABLISHED     2472
          TCP    127.0.0.1:56639        127.0.0.1:8093         ESTABLISHED     3980
          TCP    [::]:8093              [::]:0                 LISTENING       4472
          TCP    [::]:18093             [::]:0                 LISTENING       4472
        

      • Confirm open connections between cbq-engine.exe and memcached.exe:

        C:\Windows\system32>tasklist /V /fo list /FI "PID eq 4472"
         
        Image Name:   cbq-engine.exe
        PID:          4472
        Session Name: Services
        Session#:     0
        Mem Usage:    63,548 K
        Status:       Unknown
        User Name:    NT AUTHORITY\SYSTEM
        CPU Time:     0:00:49
        Window Title: N/A
        

        C:\Windows\system32>netstat -ano | findstr 11210
        ...
          TCP    127.0.0.1:60124        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60125        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60126        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60127        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60128        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60129        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60130        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60131        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60132        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60133        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60134        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60135        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60136        127.0.0.1:11210        ESTABLISHED     4472
          TCP    127.0.0.1:60137        127.0.0.1:11210        ESTABLISHED     4472
        ...
        

      • Check output of cbstats:

         curr_conns_on_port_11210:                   8223
         max_conns_on_port_11210:                    30000
        

      Attachments

        Issue Links

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

          Activity

            People

              James Flather James Flather (Inactive)
              James Flather James Flather (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty