内置方法
os.loadavg()
process.memoryUsage()
第三方模块
• heapdump
• v8-profiler
• v8-profiler-node8
• node --pro-process
1. 导入heapdump模块到代码中
2. 调用heapdump.writeSnapshot()方法
3. 打开chrome devtool 载入文件分析
1. node --prof-process --preprocess isolate-xxxxxxxxxx-v8.log > v8.json
2. 使用v8-master自带分析工具进行分析
第三方服务
• easy-monitor
• alinode
APPid:
App Secret: