-
Notifications
You must be signed in to change notification settings - Fork 78
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
Detecting memory leaks through shared function context #281
Comments
The document is not publicly accessible. Having some automated tool that can detect this pattern would be fantastic. Note that this happens quite frequently in Node.js code and the vast majority of it is not a memory leak. Tracking and resolving those would be equally valuable, mainly because they will increase the memory footprint and simplify the GC job. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This was discussed at the diagnostics summit, and I want to take the discussion here. The document I referred to is this, by my colleague @jakobkummerow.
The gist of the problem is:
The object assigned to
a
is no longer accessible though JavaScript, but is kept alive because it is allocated onto the same context asb
, which remains accessible throughd
.Detecting this pattern at runtime would require the VM to keep track of additional meta-data, which does not pay off. However, we could, based on the information from a heap snapshot reconstruct missing metadata and detect this pattern.
The text was updated successfully, but these errors were encountered: