nodejs memory profiling

后端 未结 2 553
南方客
南方客 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.

提交回复
热议问题