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

ImplScope should preemptively gc as we approach the soft limit for memory utilization

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12
    • Affects Version/s: 3.3.10
    • Component/s: JavaScript
    • None
    • Fully Compatible
    • Platforms 2016-08-26

      We've currently implemented soft limits on memory consumption that attempt to catch out of memory conditions and unwind gracefully by throwing javascript exceptions. This may not be good enough however (as it still kills the running javascript job and memory use ramps higher than we like, which may cause actual ooms if many js jobs each settle at the 1gb limit).

      We should periodically force a hard gc during the interrupt callback if we're above some high water mark instead.

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: