To investigate memory leaks, I set up a route that runs global.gc() on every POST /gc
app.post('/gc', function(req, res){ global.gc(); });
However, I noticed that if I spam this request, it reduces memory usage more and more every time. Shouldn't you call global.gc() once to reduce memory to a minimum ?
If so, why does a call reduce memory several times in a row with each call ?
(I am using Node.js v0.12)
source share