I am performing reads and writes, but mongotop doesn't register those, it only sees total.
Steps to reproduce:
Use rc0 for mongod, mongo, and mongotop. In the mongo shell, run this:
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
}
Then, run mongotop & look at output. For me, it looked like it was capturing writes (but not reads) for several seconds, then it stopped capturing them at all and only captured total (see attachment)
Version evidence:
$ ./mongotop --version
mongotop version: 2.8.0-rc0