mongo out of memory on textual query

XMLWordPrintableJSON

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

      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?

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

              Assignee:
              Kelsey Schubert
              Reporter:
              Michael Dikman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: