node gets memory leak #46

Closed
aleafs opened this Issue Apr 28, 2012 · 2 comments

Projects

None yet

3 participants

@aleafs
aleafs commented Apr 28, 2012

test script is below:

https://github.com/aleafs/node-memcached/blob/master/tests/memcached-memory-leak.js

run it:

$ nohup node ./tests/memcached-memory-leak.js &

After a long time, node crashed

$ tail nohup.out
11176348    960507904   949406528   943923480
11178501    962871296   949666624   943506072
11180496    963133440   949926720   943954032
11180506    959148032   946780992   943499176
11180507    958418944   946008832   943017032
11180508    958418944   946008832   943061888
11181768    960524288   947309376   943285216
11183025    960737280   947561344   943419184
11184430    961871872   949658496   943609384
FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory
@tikonen
tikonen commented Jun 2, 2012

I did quick test with 1 million iterations and profiled heap with this tool: https://github.com/c4milo/node-webkit-agent
At least I didn't see any evidence of memory leaks in JS object space. Can you test it out with the profiling tool and check what the heap contains after memory?

@3rd-Eden
Owner

Closing this as the test is no longer available and a lot of improvements have been made that would solve some potential memory issues. If you still have issues. Feel free to re-open or create a new issue.

@3rd-Eden 3rd-Eden closed this Jul 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment