-
Notifications
You must be signed in to change notification settings - Fork 285
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
Weird memory leak #2351
Comments
Just documenting things I've tried.
|
The peak you're seeing is me connecting and then disconnecting a client. You can see a similar peak on the first graph. |
|
Every point is 1s. I can provide the raw data if that helps? Okay, I'll give that a go and get back to you. |
@OmgImAlexis - ay updates on this? Refs: nodejs/node#31641 , that also reports a potential reason for fake RSS growth. |
closing as inactive, pls reopen if this is outstanding, and when you can provide details. |
node --optimize_for_size index.js
to start my app.I'm still not sure what's causing this and the issue seems to be buried somewhere within my app. I've tried disabling large sections of the app with some success but the leak just seems to randomly appear again.
I've tried using things such as
njstrace
to see what's running while the memory is increasing and I never see any functions running. Same goes for using chrome's devtools and debugger statements. Basically comes down to there not being any code run yet memory is increasing. Since I'm not sure what's running I can't find where the leak is. One though I had was it's leaking in a timer somewhere and the tracing methods I've tried aren't catching it?As you can see the heap seems to recover but RSS continues to grow.
This is the script I'm using the log the data. It just outputs as
|
separated and then I put the data into google sheets for the graph. From what I can tell the logMemory function isn't causing any issues.The text was updated successfully, but these errors were encountered: