Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Measuring and monitoring Node.JS server performance [closed]

Tags:

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?

Thanks!

like image 695
Alan Hoffmeister Avatar asked Dec 23 '11 11:12

Alan Hoffmeister


2 Answers

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.

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

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

Resources:

monitoring a node.js server

like image 90
alessioalex Avatar answered Sep 23 '22 17:09

alessioalex


I recommend monitoring your event loop and if it starts to back up more than 200ms on a regular basis, you'll need to scale.

like image 24
Dave W Avatar answered Sep 22 '22 17:09

Dave W