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

memory footprint of JS context keeps increasing as it is used

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.2, 2.1.0
    • Affects Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: