[SERVER-1684] bad dbtop stats in web ui Created: 25/Aug/10  Updated: 12/Jul/16  Resolved: 21/Oct/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.2

Type: Bug Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

pretty easy to get bad (negative #s) in dbtop like:

NS total Reads Writes Queries GetMores Inserts Updates Removes
GLOBAL 8264 60.3% 0 0.0% 8264 60.3% 82 11.6% 0 0.0% 8182 48.6% 0 0.0% 0 0.0%
test 82 11.6% 0 0.0% 82 11.6% 82 11.6% 0 0.0% 0 0.0% 0 0.0% 0 0.0%
test.foo -18 -0.1% 0 0.0% -18 -0.1% 0 0.0% 0 0.0% -18 -0.1% 0 0.0% 0 0.0%

here is a script which will do it. press reload several times while running until manifests

S:\cygwin\home\dm\mongo>cat test.js
t = db.foo;

while( 1 ) {
for( var i = 0; i < 100; i++ )
t.insert(

{i:i}

);
t.drop();
}



 Comments   
Comment by auto [ 21/Oct/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Make dbtop more accurate SERVER-1684
http://github.com/mongodb/mongo/commit/f84d0586eeddb472fe815f7ca1334ab0e4748fe1

Generated at Thu Feb 08 02:57:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.