Re: [nodejs] How to debug memory leaks in node.js app?

2012-08-27 Thread Martin Wawrusch
awesome. you rock On Mon, Aug 27, 2012 at 1:16 PM, Tim Caswell wrote: > I have one automated test that looks for memory leaks. Basically I do > some operation a *lot* of times and record the memory usage over time. > I then analyse the results and calculate the relative standard > deviation to

Re: [nodejs] How to debug memory leaks in node.js app?

2012-08-27 Thread Tim Caswell
I have one automated test that looks for memory leaks. Basically I do some operation a *lot* of times and record the memory usage over time. I then analyse the results and calculate the relative standard deviation to decide it it's a leak or not. https://github.com/c9/smith/blob/master/tests/tes

[nodejs] How to debug memory leaks in node.js app?

2012-08-27 Thread Martin Wawrusch
Hi all, we have a bad memory leak (objects not being freed for whatever reason) in one of our API express based services, what's the best way to debug this (best = fastest way to detect the culprit), and also how can we automatically test this (we are using mocha, so that would be preferred). Any