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

mongo out of memory on textual query

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

      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. 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

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

              Created:
              Updated:
              Resolved: