[SERVER-25477] JS does not GC properly Created: 08/Aug/16  Updated: 08/Jan/24  Resolved: 19/Aug/16

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Mira Carey
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-25559 ImplScope should preemptively gc as w... Closed
Duplicate
duplicates SERVER-25559 ImplScope should preemptively gc as w... Closed
Related
related to SERVER-23421 shell leaks memory proportional to si... Closed
Operating System: ALL
Sprint: Platforms 2016-08-26
Participants:

 Description   

Garbage collection in Javascript is supposed to be transparent, ie. it is a feature of the language and the (non-standard) gc() function should never need to be called under ordinary circumstances.

However, under certain circumstances/workloads, the JS interpreter does not GC often (or aggressively) enough, which can cause memory exhaustion problems.

The workaround is to force garbage collection by calling gc() frequently.


Generated at Thu Feb 08 04:09:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.