Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1684

bad dbtop stats in web ui

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      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();
      }

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: