mongostat shows incorrect connections number

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.6.3
    • Component/s: Tools
    • None
    • Environment:
      CentOS 5.2
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Running mongostat with no params locally to connect to localhost shows an incorrect number of connections when compared to running with -h hostname or checking the rest interface.

      -bash-3.2$ ./mongostat
      connected to: 127.0.0.1
      insert/s query/s update/s delete/s getmore/s command/s flushes/s mapped vsize res faults/s locked % idx miss % q t|r|w conn time
      0 0 0 0 0 3 0 168095 168385 52 0 0 0 0|0|0 8 16:42:49
      0 0 0 0 0 3 0 168095 168385 52 0 0 0 0|0|0 8 16:42:50

      -bash-3.2$ ./mongostat -h hostname.com
      connected to: sharemdb01c.internal.shutterfly.com
      insert/s query/s update/s delete/s getmore/s command/s flushes/s mapped vsize res faults/s locked % idx miss % q t|r|w conn time
      0 17 2 0 4 5 0 171038 173876 40354 1 0 0 0|0|0 209 16:46:22
      0 31 1 0 2 6 0 171038 173876 40354 0 0 0 0|0|0 209 16:46:23

      http://hostname.com:28017/serverStatus?text

      "connections" :

      { "current" : 208, "available" : 19792 }

      ,

            Assignee:
            Unassigned
            Reporter:
            Brennan Pang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: