Mongotop not differentiating reads/writes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: mongotop
    • None

      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 =

      { _id : (1000 * (i-1) + j), a : i, b : j, c : (1000 * (i-1)+ j)}

      ;
      arr.push(doc)
      };
      db.testcol.insert(arr);
      var x = db.testcol.find(

      { b : 255 }

      );
      x.next();
      var x = db.testcol.find(

      { _id : 1000 * (i-1) + 255 }

      );
      x.next();
      var x = "asdf";
      db.testcol.update(

      { a : i, b : 255 }

      , { $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

            Assignee:
            Michael O'Brien
            Reporter:
            William Cross (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: