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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.8.0-rc0
    • Legacy C++ Implementation
    • mongostat
    • None
    • MCI 2.7.8

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: