Details
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.