-
Notifications
You must be signed in to change notification settings - Fork 8
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
Memory leaking #20
Comments
Can you try to replace the I'm not entirely sure though, so if you could run the tests and tell me if it helped I'd be really thankful :) |
I will check it out next week, since I won't be able to work on it until then. |
Yeah that's very needed. |
Hi, any changes or forecasts by troubleshooting? |
Hey, I just published Version helper.connectAndAuth(instance)
.then(connection => {
return {
query: connection,
info: query.send('hostinfo')
};
})
.then(object => object.query.disconnect())
.then(() => callback()); Let's hope this fixes it :) |
Hi @schroffl. |
Alright, thanks for your feedback :) |
Hi, there is still some leaking. But growing not so fast, by steps (i dont know what the reason). |
The Garbage Collector doesn‘t have to kick in if there is no memory pressure. Are you sure that it is actually a leak? How much memory does it use in the end? |
1400k connections 85MB of memory |
Hey, sorry for taking so long to finally answer. How does the memory consumption look now? |
Now all is great. All services works perfect without 5+GB memory using even in peak cases :D |
I will aim to run the memory profiler at some point in the next few weeks and if no suspicious characteristics come up I'd consider this resolved. |
I'm going to close this issue now. I have to admit that I didn't run the profiler, but since no other complaints came up I feel confident to consider this resolved. |
Hi @schroffl i've detected memory leak when we recreating connection and for example sending
hostinfo
commandMethod
connectAndAuth
from helper classAlready tried query.sock.removeAllListeners(), but it doesn't matter for memory using
Currently same thing is working on my API for job and memory growing so fast due to big count of request per minute.
P.S* Memory leak doesn't depend from command which we send to server query, that can be only simple connection with
login
commandThe text was updated successfully, but these errors were encountered: