![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
性能分析
Velly_zheng
这个作者很懒,什么都没留下…
展开
-
node垃圾回收
javascript引擎会记录所有创建过的javascript对象,将它们管理起来,隔一段时间会定时清理没有被使用的对象减少内存使用,可以提高服务性能如果有内存泄露,会有大量的内存空间放到“老生代”中,导致服务性能大大降低2.node.js buffer的内存分配策略分为大于8KB和小于8KB的情况遇到小于8KB的Buffer的情况,第一次会申请一个8KB的char[] ...原创 2020-01-06 18:35:19 · 149 阅读 · 0 评论 -
node 性能分析
1.使用命令(node自带的profile工具)node --prof test.js可以生成性能分析报告,生成一个以isolate-开头的.log文件分析上述log文件node --prof-process isolate-开发的.log文件 > profile.txt就会生成一个profile.txt文件,2.ab压测数据ab -c5...原创 2020-01-06 18:05:56 · 928 阅读 · 0 评论