nodejs memory profiling

后端 未结 2 554
南方客
南方客 2021-01-13 18:22

Need to profile node process. i\'ve some memory leaks in production, after some days of running node process.

i\'ve tried node-inspector + v8, but it doesn\'t work,

相关标签:
2条回答
  • 2021-01-13 18:37

    I've found node-memwatch useful.

    The downside is you have to embed it in your application and have a bit of code for it, but it's useful for checking the heap at various places to see how much it changed after you did something.

    0 讨论(0)
  • 2021-01-13 18:48

    You can try to use look module. It based on nodetime but works locally.

    0 讨论(0)
提交回复
热议问题