Created
April 16, 2012 01:27
-
-
Save pkufranky/2395867 to your computer and use it in GitHub Desktop.
mongodb hang log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongostat --port 27018 5 | |
connected to: 127.0.0.1:27018 | |
insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn set repl time | |
0 0 0 0 0 1 0 75g 151g 9.1g 0 0 0 5|3 5|2 113b 424b 16 rs_default M 08:58:12 | |
0 0 0 0 0 1 0 75g 151g 9.1g 0 0 0 5|3 5|2 163b 480b 16 rs_default M 08:58:17 | |
PRIMARY> db.currentOp() | |
{ | |
"inprog" : [ | |
{ | |
"opid" : 15710450, | |
"active" : true, | |
"lockType" : "read", | |
"waitingForLock" : true, | |
"secs_running" : 17965, | |
"op" : "getmore", | |
"ns" : "local.oplog.rs", | |
"query" : { | |
}, | |
"client" : "192.168.0.21:55171", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8d1f3700", | |
"connectionId" : 5, | |
"numYields" : 0 | |
}, | |
{ | |
"opid" : 15710430, | |
"active" : true, | |
"lockType" : "read", | |
"waitingForLock" : false, | |
"secs_running" : 17966, | |
"op" : "query", | |
"ns" : "app_wowsearch.events.day", | |
"query" : { | |
"$msg" : "query not recording (too large)" | |
}, | |
"client" : "127.0.0.1:33900", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8daf5700", | |
"connectionId" : 19963, | |
"msg" : "m/r: (1/3) emit phase 0/835941 0%", | |
"progress" : { | |
"done" : 0, | |
"total" : 835941 | |
}, | |
"numYields" : 3 | |
}, | |
{ | |
"opid" : 15710456, | |
"active" : false, | |
"lockType" : "read", | |
"waitingForLock" : true, | |
"op" : "getmore", | |
"ns" : "", | |
"query" : { | |
}, | |
"client" : "192.168.0.21:55265", | |
"desc" : "conn", | |
"threadId" : "0x7f20b03ea700", | |
"connectionId" : 12, | |
"numYields" : 0 | |
}, | |
{ | |
"opid" : 15710523, | |
"active" : false, | |
"lockType" : "write", | |
"waitingForLock" : true, | |
"op" : "update", | |
"ns" : "", | |
"query" : { | |
"_id" : ObjectId("4f8b29007fdf1a3166000015") | |
}, | |
"client" : "192.168.0.21:39126", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8c9eb700", | |
"connectionId" : 93, | |
"numYields" : 0 | |
}, | |
{ | |
"opid" : 15728209, | |
"active" : false, | |
"lockType" : "read", | |
"waitingForLock" : true, | |
"op" : "query", | |
"ns" : "", | |
"query" : { | |
}, | |
"client" : "192.168.0.31:34227", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8cef0700", | |
"connectionId" : 20557, | |
"numYields" : 0 | |
}, | |
{ | |
"opid" : 15728234, | |
"active" : false, | |
"lockType" : "read", | |
"waitingForLock" : true, | |
"op" : "query", | |
"ns" : "", | |
"query" : { | |
}, | |
"client" : "192.168.0.31:34658", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8d0f2700", | |
"connectionId" : 20559, | |
"numYields" : 0 | |
}, | |
{ | |
"opid" : 15710451, | |
"active" : false, | |
"lockType" : "write", | |
"waitingForLock" : true, | |
"op" : "update", | |
"ns" : "", | |
"query" : { | |
"cache_key" : "{\n\t\"e\" : \"l\",\n\t\"ts\" : {\n\t\t\"$gte\" : ISODate(\"2012-04-14T16:00:00Z\"),\n\t\t\"$lt\" : ISODate(\"2012-04-15T16:00:00Z\")\n\t}\n}[ \"model\" ]undefined" | |
}, | |
"client" : "0.0.0.0:0", | |
"desc" : "conn", | |
"threadId" : "0x7f1e8d2f4700", | |
"connectionId" : 19964, | |
"numYields" : 0 | |
} | |
] | |
} | |
db.serverStatus() | |
{ | |
"host" : "data2:27018", | |
"version" : "2.0.2", | |
"process" : "mongod", | |
"uptime" : 602434, | |
"uptimeEstimate" : 594271, | |
"localTime" : ISODate("2012-04-16T00:59:47.391Z"), | |
"globalLock" : { | |
"totalTime" : 602434261059, | |
"lockTime" : 56141056582, | |
"ratio" : 0.09319034492379538, | |
"currentQueue" : { | |
"total" : 8, | |
"readers" : 5, | |
"writers" : 3 | |
}, | |
"activeClients" : { | |
"total" : 7, | |
"readers" : 5, | |
"writers" : 2 | |
} | |
}, | |
"mem" : { | |
"bits" : 64, | |
"resident" : 9321, | |
"virtual" : 154352, | |
"supported" : true, | |
"mapped" : 76765, | |
"mappedWithJournal" : 153530 | |
}, | |
"connections" : { | |
"current" : 15, | |
"available" : 4081 | |
}, | |
"extra_info" : { | |
"note" : "fields vary by platform", | |
"heap_usage_bytes" : 10705680, | |
"page_faults" : 247917 | |
}, | |
"indexCounters" : { | |
"btree" : { | |
"accesses" : 776385, | |
"hits" : 776383, | |
"misses" : 2, | |
"resets" : 0, | |
"missRatio" : 0.000002576041525789396 | |
} | |
}, | |
"backgroundFlushing" : { | |
"flushes" : 10040, | |
"total_ms" : 333725, | |
"average_ms" : 33.239541832669325, | |
"last_ms" : 7, | |
"last_finished" : ISODate("2012-04-16T00:59:14.619Z") | |
}, | |
"cursors" : { | |
"totalOpen" : 3, | |
"clientCursors_size" : 3, | |
"timedOut" : 10, | |
"totalNoTimeout" : 1 | |
}, | |
"network" : { | |
"bytesIn" : 4236134537, | |
"bytesOut" : 14433927683, | |
"numRequests" : 15717544 | |
}, | |
"repl" : { | |
"setName" : "rs_default", | |
"ismaster" : true, | |
"secondary" : false, | |
"hosts" : [ | |
"data2:27018", | |
"data1:27018" | |
], | |
"arbiters" : [ | |
"db1:27018" | |
], | |
"primary" : "data2:27018", | |
"me" : "data2:27018" | |
}, | |
"opcounters" : { | |
"insert" : 1062410, | |
"query" : 191572, | |
"update" : 10754600, | |
"delete" : 0, | |
"getmore" : 3095746, | |
"command" : 624116 | |
}, | |
"asserts" : { | |
"regular" : 0, | |
"warning" : 0, | |
"msg" : 0, | |
"user" : 10, | |
"rollovers" : 0 | |
}, | |
"writeBacksQueued" : false, | |
"dur" : { | |
"commits" : 30, | |
"journaledMB" : 0, | |
"writeToDataFilesMB" : 0, | |
"compression" : 0, | |
"commitsInWriteLock" : 0, | |
"earlyCommits" : 0, | |
"timeMs" : { | |
"dt" : 3072, | |
"prepLogBuffer" : 0, | |
"writeToJournal" : 0, | |
"writeToDataFiles" : 0, | |
"remapPrivateView" : 0 | |
} | |
}, | |
"ok" : 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment