-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node domains causing a memory leak #5255
Comments
Any clue how to AT this @garethbowen ? |
No AT needed. Sorry, I should have just closed it! |
@dianabarsan found this memory leak in node v10+ which is solved by this fix. |
Due to the above memory leak Diana and I decide to backport this for 3.3.0 release. |
Thanks for the additional info @dianabarsan . As discussed I'm proposing to leave this in 3.3.0 for now and monitor running instances and restart as needed. If it becomes too problematic we can backport to a new 3.2.2 release. |
Probably worth back porting given MUSO's now frequent incidences of 502s. |
@derickl Have those crashes been investigated? How confident are we that it's this issue causing them? |
Domains in Node are deprecated because they're bad. In particular, we call Domain.dispose which has been removed in Node v10 so uncaught exceptions cause even more exceptions to be thrown.
Domains can be used to limit errors to one specific request, but currently we're exiting the process which clearly isn't limiting it at all. Replace the use of domains with an unhandled exception handler.
The text was updated successfully, but these errors were encountered: