-
Type: Question
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 5.5.0
-
Component/s: Bulk API
This test app runs into OOM if it keeps open MongoClient that handles successive insertMany() as in the right.
Thus, the app must close the client regularly in order to prevent OOM as in the left.
Use Case
As a SA
I want this issue to be looked into
So that it's clarified whether or not it's a driver issue.
User Impact
*internal report
Dependencies
- nodejs applications that rely on successive insertMany of a load of docs
Unknowns
- When insertMany is invoked repeatedly, V8 scavenger can't reclaim heap and the app ends up with OOM.
Acceptance Criteria
Implementation Requirements
- Apps must not have to close the mongoclient regularly to release heap references.
Testing Requirements
- repeat insertMany(a large number of docs: say, 3M docs)
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc