Skip to content

Instantly share code, notes, and snippets.

@satterly
Created June 4, 2014 21:06
Show Gist options
  • Save satterly/05882c3b27ea96f0d029 to your computer and use it in GitHub Desktop.
Save satterly/05882c3b27ea96f0d029 to your computer and use it in GitHub Desktop.
example mongo server status output
MongoDB shell version: 2.4.9
connecting to: test
> db.serverStatus()
{
"host" : "macbookpro-2.local",
"version" : "2.4.9",
"process" : "mongod",
"pid" : 94305,
"uptime" : 32053,
"uptimeMillis" : NumberLong(32053102),
"uptimeEstimate" : 21804,
"localTime" : ISODate("2014-06-04T20:55:22.296Z"),
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 0,
"rollovers" : 0
},
"backgroundFlushing" : {
"flushes" : 393,
"total_ms" : 2596,
"average_ms" : 6.6055979643765905,
"last_ms" : 3,
"last_finished" : ISODate("2014-06-04T20:54:54.925Z")
},
"connections" : {
"current" : 5,
"available" : 2043,
"totalCreated" : NumberLong(5)
},
"cursors" : {
"totalOpen" : 0,
"clientCursors_size" : 0,
"timedOut" : 0
},
"dur" : {
"commits" : 29,
"journaledMB" : 0.008192,
"writeToDataFilesMB" : 0.000148,
"compression" : 33.03225806451613,
"commitsInWriteLock" : 0,
"earlyCommits" : 0,
"timeMs" : {
"dt" : 3015,
"prepLogBuffer" : 0,
"writeToJournal" : 0,
"writeToDataFiles" : 0,
"remapPrivateView" : 0
}
},
"extra_info" : {
"note" : "fields vary by platform",
"page_faults" : 3654
},
"globalLock" : {
"totalTime" : NumberLong("32053103000"),
"lockTime" : NumberLong(1574111),
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
},
"activeClients" : {
"total" : 0,
"readers" : 0,
"writers" : 0
}
},
"indexCounters" : {
"accesses" : 8115,
"hits" : 8115,
"misses" : 0,
"resets" : 0,
"missRatio" : 0
},
"locks" : {
"." : {
"timeLockedMicros" : {
"R" : NumberLong(1320877),
"W" : NumberLong(1574111)
},
"timeAcquiringMicros" : {
"R" : NumberLong(753537),
"W" : NumberLong(329705)
}
},
"admin" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
},
"local" : {
"timeLockedMicros" : {
"r" : NumberLong(609546),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(6571),
"w" : NumberLong(0)
}
},
"monitoring" : {
"timeLockedMicros" : {
"r" : NumberLong(5003213),
"w" : NumberLong(830283)
},
"timeAcquiringMicros" : {
"r" : NumberLong(146231),
"w" : NumberLong(25275)
}
}
},
"network" : {
"bytesIn" : 3772582,
"bytesOut" : 34719079,
"numRequests" : 24316
},
"opcounters" : {
"insert" : 31,
"query" : 8873,
"update" : 4041,
"delete" : 0,
"getmore" : 0,
"command" : 12160
},
"opcountersRepl" : {
"insert" : 0,
"query" : 0,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 0
},
"recordStats" : {
"accessesNotInMemory" : 15,
"pageFaultExceptionsThrown" : 14,
"local" : {
"accessesNotInMemory" : 0,
"pageFaultExceptionsThrown" : 0
},
"monitoring" : {
"accessesNotInMemory" : 15,
"pageFaultExceptionsThrown" : 14
}
},
"writeBacksQueued" : false,
"mem" : {
"bits" : 64,
"resident" : 5,
"virtual" : 2814,
"supported" : true,
"mapped" : 160,
"mappedWithJournal" : 320
},
"metrics" : {
"document" : {
"deleted" : NumberLong(0),
"inserted" : NumberLong(31),
"returned" : NumberLong(84796),
"updated" : NumberLong(4041)
},
"getLastError" : {
"wtime" : {
"num" : 0,
"totalMillis" : 0
},
"wtimeouts" : NumberLong(0)
},
"operation" : {
"fastmod" : NumberLong(4041),
"idhack" : NumberLong(0),
"scanAndOrder" : NumberLong(0)
},
"queryExecutor" : {
"scanned" : NumberLong(117115)
},
"record" : {
"moves" : NumberLong(0)
},
"repl" : {
"apply" : {
"batches" : {
"num" : 0,
"totalMillis" : 0
},
"ops" : NumberLong(0)
},
"buffer" : {
"count" : NumberLong(0),
"maxSizeBytes" : 268435456,
"sizeBytes" : NumberLong(0)
},
"network" : {
"bytes" : NumberLong(0),
"getmores" : {
"num" : 0,
"totalMillis" : 0
},
"ops" : NumberLong(0),
"readersCreated" : NumberLong(0)
},
"oplog" : {
"insert" : {
"num" : 0,
"totalMillis" : 0
},
"insertBytes" : NumberLong(0)
},
"preload" : {
"docs" : {
"num" : 0,
"totalMillis" : 0
},
"indexes" : {
"num" : 0,
"totalMillis" : 0
}
}
},
"ttl" : {
"deletedDocuments" : NumberLong(0),
"passes" : NumberLong(393)
}
},
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment