Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-48

Skip recordStats for db.serverStatus() call in mongostats to avoid acquire read lock

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc0
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongostat
    • Labels:
      None
    • MCI 2.7.8

      db.serverStatus() acquires read lock when retrieving information for recordStats, which is not used by mongostat in stats_util.cpp. During load test, sometime mongostats will pause.

      Changing to db.serverStatus({recordStats:0}) would make mongostats lock free.

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            rui.zhang Rui Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: