我是 Node.JS 的新手,已经在 Google 上搜索答案,但有很多方法可以做到这一点。
您是否知道我何时需要扩展 Node.JS 服务器?您使用什么工具来监控服务器性能和错误跟踪?
Thanks!
正如@ThiefMaster 所说,这取决于您的系统。您需要监控站点的请求、CPU 负载、内存占用等,并决定是否以及何时添加模式服务器。
如果您想了解有关 Node.js 性能的更多信息,请阅读这篇好文章:http://blog.3rd-eden.com/post/5809079469/theoretical-node-js-real-time-performance http://blog.3rd-eden.com/post/5809079469/theoretical-node-js-real-time-performance
如果您需要 Node.js 指标库,我可以推荐 2 个:
https://github.com/felixge/node-measured https://github.com/felixge/node-measured
https://github.com/mikejihbe/metrics https://github.com/mikejihbe/metrics
资源:
监控 Node.js 服务器 https://stackoverflow.com/questions/5580776/monitoring-a-node-js-server
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)