Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-367

Mongotop not differentiating reads/writes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.8.0-rc1
    • mongotop
    • None

    Description

      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

      Attachments

        Activity

          People

            mikeo@mongodb.com Michael O'Brien
            william.cross William Cross
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: