Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13848

Investigate potential socket leaks from MongoS

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Networking, Sharding
    • None
    • Leakin
    • Service Arch

    Description

      Relates to work done with releaseConnectionAfterResponse


      Results from some testing
      Under 2.6 we do have some leftover connections, compare:
      Pre Test (18 sockets with LSOF)

      	"totalAvailable" : 9,
      	"totalCreated" : 10,
      	"numDBClientConnection" : 10,
      	"numAScopedConnection" : 1,
      	"ok" : 1
      

      Post test (86 sockets under LSOF)

      	"totalAvailable" : 15,
      	"totalCreated" : 25,
      	"numDBClientConnection" : 84,
      	"numAScopedConnection" : 10,
      	"ok" : 1
      

      However, under load there are 186 open sockets open during the test.

      This shows that connections are being closed by RCAR, but there may also be some leftovers. We need to investigate this.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: