15

I'm trying to track down a memory leak in a Node.js app. I've tried installing v8-profiler but it will not compile... it looks like a dead project that a lot of people are trying to use but getting the same problem - pretty-much from about node 0.3.2 so quite a while ago.

Does anyone know of a way to hunt down memory leaks in a Node.js app without using v8-profiler? I have Eclipse running with the V8 remote debugging working but cannot find a way to see memory usage / heaps etc.

1 Answer 1

6

Have you looked at https://github.com/felixge/node-memory-leak-tutorial? The author includes a link in the Readme to a more recent (Apr 11) fork of v8-profiler.

5
  • Hi, yes I found that in my googling but that version of v8-profiler also fails to compile with Node 0.6.10.
    – Rob Evans
    Feb 13, 2012 at 10:07
  • Looks like v8-profiler has been updated to support Node 0.6.10, I'll test it out and post back if it works ok.
    – Rob Evans
    Feb 13, 2012 at 10:07
  • Were you ever able to successfully profile the memory of your nodejs app?
    – Dested
    Jun 8, 2012 at 6:03
  • 1
    Profiler does not work, see the issues list on the project. This project appears to be dead.
    – Drew
    Nov 19, 2012 at 19:22
  • Also v8 profiler doesn't seem to scale - a snapshot of 500mb heap takes forever.
    – nponeccop
    Nov 21, 2012 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.