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

Multiple tailable cursors against the same collection shows high cpu usage on server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Performance
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      install node.js
      npm install -g mubsub

      Code
      ---------------------------------------
      var mubsub = require('mubsub');

      var client = mubsub('mongodb://localhost:27017/test?poolSize=5',

      {safe: true}

      );
      var channel = client.channel('mubsub');

      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);
      channel.subscribe(console.log);

      Show
      install node.js npm install -g mubsub Code --------------------------------------- var mubsub = require('mubsub'); var client = mubsub('mongodb://localhost:27017/test?poolSize=5', {safe: true} ); var channel = client.channel('mubsub'); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log); channel.subscribe(console.log);
    • Case:

      CRM plugin field not viewable

      Description

      Open multiple tailable cursors with or without awaitdata against a capped collection causes sustained high cpu (on my machine about 30% cpu). A single cursor is about 5% cpu.

      Confirmed using the node.js driver and java driver.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                24 Vote for this issue
                Watchers:
                31 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: