Monitoring CPU/Memory
PM2 gives you a simple way to monitor the resource usage of your application. You can monitor memory and CPU easily and straight from your terminal:
pm2 monit
PM2.io
If you manage your Node.js application with PM2, we invite you to try PM2.io. It makes monitoring and managing applications across servers easier than ever.
Feel free to try it: Discover the monitoring dashboard for PM2
Memory threshold
PM2 allows to reload (auto fallback to restart) an application based on a memory limit. Please note that the PM2 internal worker (which checks memory and related), starts every 30 seconds, so you may have to wait a bit before your process gets restarted automatically after reaching the memory threshold.
If you manage your Node.js application with PM2, we invite you to try PM2.io. It makes monitoring and managing applications across servers easier than ever.
pm2 monitor
Feel free to try it: Discover the monitoring dashboard for PM2
Contribute to this page