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

Mongod 2.4.0 takes upto 99 % cpu and query result is undef

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.0
    • Component/s: Diagnostics
    • None
    • Environment:
      linux
    • Linux
    • Hide

      1. Run stand alone mongod
      2. Create 2 collections with cap of 1GB each
      3. have 1.3 and 900k docs in those collections
      4. run a query with timestamp range for list of documents with count function

      Show
      1. Run stand alone mongod 2. Create 2 collections with cap of 1GB each 3. have 1.3 and 900k docs in those collections 4. run a query with timestamp range for list of documents with count function

      Hi All,
      I upgraded mongodb to 240. I am running standalone mongo server with 2 collections. one having 1.3 million docs other with 900k docs. Running query with a filter to have count of records makes CPU usage to go up till 99%. And query returns no data. I am using perl driver to query. Even after query execution is over, mongod CPU usages remains at 80-90%.
      Strace on mongod gave me below out put

      Process 3284 attached - interrupt to quit
      setuid(4294967295) = 0
      setuid(4294967295) = 0
      setuid(4294967295) = 0
      setuid(4294967295) = 0
      setuid(4294967295) = 0
      setuid(4294967295) = 0
      setuid(4294967295) = 0

      My collections are indexed on _id.

      Can any one help if i am missing something.
      I am using capped collection of 1GB.

      Thanks

            Assignee:
            Unassigned Unassigned
            Reporter:
            asethy Arati Sethy
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: