测量和监视Node.JS服务器性能 [英] Measuring and monitoring Node.JS server performance

查看:66
本文介绍了测量和监视Node.JS服务器性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Node.JS的新手,已经在Google上搜索了Aswer,但是有很多方法可以做到这一点. 您是否需要某种数学知识才能知道何时需要扩展Node.JS服务器?以及用于监视服务器性能和错误跟踪的工具是什么?

I'm new to Node.JS, already Googled for aswers but there is a lot of ways of doing this. Do you have some sort of math to know when I'll need to scale my Node.JS server? And what tools you use for monitoring server performance and error track?

谢谢!

推荐答案

正如@ThiefMaster所说,这取决于您的系统.您需要监视对站点的请求,CPU负载,内存占用等,并确定是否以及何时添加模式服务器.

As @ThiefMaster said, this depends on your system. You need to monitor the requests for your site, the CPU load, memory footprint etc and decide if and when to add mode servers.

如果您想了解有关Node.js性能的更多信息,请阅读以下优秀文章: http://blog.3rd-eden.com/post/5809079469/theoretical-node-js-real-time-performance

If you want to know more about Node.js performance read this good article: http://blog.3rd-eden.com/post/5809079469/theoretical-node-js-real-time-performance

如果您需要Node.js指标库,则可以推荐2种指标库:
https://github.com/mikejihbe/metrics

If you need a Node.js metrics library, there are 2 ones which I can recommend:
https://github.com/felixge/node-measured
https://github.com/mikejihbe/metrics

资源:

监视node.js服务器

这篇关于测量和监视Node.JS服务器性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆