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

mongo out of memory on textual query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.2.10
    • Querying, Text Search
    • None
    • mongo on aws docker instance. t2 medium machine
    • 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

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            archmisha Michael Dikman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: