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

mongo out of memory on textual query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: 3.2.10
    • Fix Version/s: None
    • Component/s: Querying, Text Search
    • Labels:
      None
    • Environment:
      mongo on aws docker instance. t2 medium machine
    • Operating System:
      ALL

      Description

      We have a mongodb instance 3.2.10 running on machine with 4gb ram.
      I created 700k documents with the string X in them (X is of length 6 character).
      When i run textual query of the type:
      db.MyCollection.find({$text: {$search: 'X'}})
      We see that the memory raises by 800mb.
      After running such a query 3-4 consequential times the mongodb instance is automatically restarted.

      This prevents us from using the textual indexing feature in production.
      Any workaround? Can we disable the query cache for such queries?

        Attachments

        1. metrics.2016-10-13T14-05-40Z-00000
          41 kB
        2. metrics.2016-10-13T14-08-04Z-00000
          35 kB
        3. mongo.log
          14 kB
        4. mongo-crash.txt
          6 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: