-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: mongotop
-
None
Mongotop is measuring more than 1000 ms of work per second.
This is a problem because it makes it look like mongotop is malfunctioning.
Steps to reproduce:
- Run a mongod & mongo & mongotop, all 2.8.0-rc0
- In mongo shell, run the following:
db.testcol.drop()
for (i=1; i<=10000; i++) {
arr = [];
for (j=1; j<=1000; j++) {
doc =
;
arr.push(doc)
};
db.testcol.insert(arr);
var x = db.testcol.find(
);
x.next();
var x = db.testcol.find(
);
x.next();
var x = "asdf";
db.testcol.update(
, { $set :
{ d : x.pad(1000) } });
print
}
- Give it a minute or two to really slow down.
- Look at mongotop
Expected result:
<1000 ms of activity per second
Actual result:
> 1000 ms of activity per second (by a little)
See attached.