2

I'm trying to debug memory leaks in my production server. I'm looking for node profilers but all the solutions I find require the v8-profiler ( https://github.com/dannycoates/v8-profiler ) which doesn't seem to work with the latest versions of node (linkage error: https://github.com/dannycoates/v8-profiler/issues/20 ).

Can you recommend other solutions? (I realize that this is a duplicate of Detecting memory leaks in nodejs but the solutions suggested there are not updated as well...)

Community
  • 1
  • 1
user429400
  • 3,145
  • 12
  • 49
  • 68

1 Answers1

1

Try Nodetime. It shows heap from the point of view of retainers, i.e. properties, array elements, etc. More info in this post Detecting Memory Leaks in Node.js Applications . To install nodetime see instructions, which is basically installing and requiring the nodetime package.

logix
  • 516
  • 7
  • 10