-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: 8.0.32
-
Component/s: None
-
None
-
DB Integration & Observability
-
Fully Compatible
-
ALL
-
v9.0, v8.3, v8.0, v7.0
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Server-side JavaScript fails with JSInterpreterFailure "Out of memory" while the actual SpiderMonkey heap is nearly empty. MongoDB's JS memory counter (mongo::sm::malloc_bytes) is incremented when a mozilla::StringBuffer is allocated but never decremented when it is released, so it tracks cumulative string allocation instead of live memory. Once it crosses internalQueryJavaScriptHeapSizeLimitMB (default 100MB) the operation is killed.
- is caused by
-
SERVER-117317 Upgrade MozJS to ESR 140.7
-
- Closed
-