-
Notifications
You must be signed in to change notification settings - Fork 115
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
Potential Memory Leak #335
Comments
The leak is fairly slow, so I'm using Vegeta to expedite the process. |
@AdamMagaluk argo-resource/resources.js method var pre = context.env.pipeline('resource:request:before');
if (pre) {
pre.siphon(context.env, function(env) { This goes into pipeworks/pipeworks.js method If I update Pipeworks.prototype.fit = function(options, pipe) {
if(this.state === 'built') {
return this;
}
} This is just a guess on my part as far as the logic goes. The build process creates |
Interesting. Rebuilding that pipe every time would definitely make the memory expand. |
Would it be possible for argo/builder.js to be updated with the "resource:" pipes? And the |
Possibly. I don't have cycles to do it though. |
Good news. This is not an issue with latest version of pipeworks (1.3.1), and has actually been fixed since 1.3.0 (released March 2015). Here is the commit: @mdobson or @AdamMagaluk : can you bump the version in all relevant zetta package files? |
Sorry for the delay, ill get this updated and a zetta release done by end of weekend. Thanks for the debugging effort. |
@wooliet Is it safe to close this now? |
I'll leave that to @kyork-cl, since he opened the issue. |
Yes, the issue looks to be resolved now. Thanks. |
I'm investigating the source of a system crash in our product and I think I have narrowed it down to the "argo-resource" dependency. If you install a
resource:request:before
handler, the memory consumption of the program continues to grow until it uses all system memory and crashes. If you install arequest
instead, the memory leak does not occur.I'll continue to dig into the "argo-resource" dependency and see if I can locate the source of the leak.
The text was updated successfully, but these errors were encountered: