buildbox-agent-ruby icon indicating copy to clipboard operation
buildbox-agent-ruby copied to clipboard

Memory leak

Open tomtaylor opened this issue 11 years ago • 2 comments

We're finding that the buildbox-agent leaks memory after a few days. I just had to kill it on a 4GB VM, where it's the only thing running after it took up ~3.5GB.

Is there anything I can do help with debugging this issue?

tomtaylor avatar Jan 27 '14 15:01 tomtaylor

Hi @tomtaylor, I've noticed the same thing. I think it could possibly be artifact uploading.

I'm currently rewriting some parts of the agent here: https://github.com/buildboxhq/agent/tree/0.7

You could perhaps try cloning the git repo to your CI server, and run the 0.7 branch of the agent and see if that has an effect?

keithpitt avatar Jan 28 '14 08:01 keithpitt

Just wanted to give you an update on this. I've tried quite a few methods on fixing the memory leak, but none really worked out like I hoped.

I've started rewriting the agent in Go. This will make a heap of stuff easier, and it also fixes the memory leak: https://github.com/buildboxhq/agent-go The first version should be out in a few days.

keithpitt avatar Feb 26 '14 00:02 keithpitt