9

We have a memory leak that is causing our Node server to run out of process memory. What are some suggestions / tools that would help us debug this?

1 Answer 1

5

Are you running the latest and greatest node.js v0.3.8?

But I believe you might be able to detect leaks with https://github.com/dannycoates/node-inspector.

Sign up to request clarification or add additional context in comments.

6 Comments

We're running v0.3.5. Thanks for the node-inspector link!
@chetan you found the memory leak? If so, could you please post the code that was leaking for use people, who also are experiencing leaks and how you detected the leak! Thank you :P
@Alfred: Haven't found it yet :/ Still working on it. I will post an update to this question when I find it.
O that's too bad! Because you accepted my answer :P. Then I guess you should unaccept my answer ;) .....
We found the leak, though it didn't have anything to do with node in general -- it seems to have to do with the way node-mongodb-native handles either the variables or callbacks passed to it, though I couldn't find the actual culprit. We fixed the leak by ensuring the variables that went to node-mongodb were in a smaller scope.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.