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

memory footprint of JS context keeps increasing as it is used

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0.2, 2.1.0
    • None
    • JavaScript
    • None
    • ALL

    Description

      This was easily reproducible with M/R.
      The easy workaround is to disable JS scope caching.
      In scripting/engine.cpp, line 266:

      if ( l.size() > 10 )

      { delete s; }

      for

      if ( true )
      delete s;
      }

      It could be due to:

      • us not doing cleanup of certain JS objects, but then we would hit an OOM from JS
      • JS objects that are very small but point to large BSON data that is not reclaimed. Still should be cleared when GCing.
      • leak / fragmentation in SM heap.

      Attachments

        Activity

          People

            antoine Antoine Girbal
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: