The King of modern Process manager
Pm2 will help you to diagnose the issues in your servers in a day where the developers fails to investigate in a month.
A process manager is a useful tool to ensure that a process runs continuously and can enable it to auto-start when it crashed or due to some other issue. We were using forever for almost two or three years but personally, I was not happy with forever, no notification, no APIs and no integration, and the package was not updated approximately from almost four years.
I recently had some modification at the infrastructure where I needed to update our some Node application on an AWS server. I needed a tool to solve the technical challenges of managing the Node processes and deploying the application in a very efficient manner plus some APIs for integration or custom healths of the process. So after googling, I found the award-winning process manager which is the choice of every DevOps and Developer.
I chose PM2, which is a handy process management tool for running Node.js applications in production environments. PM2 provides a simple command-line interface that makes it easy to get started.
This powerful Node module has tools for managing application processes, logging, notifications, APIs, CPU profiling, memory profiling and more. I can bet if you use PM2 once you will never look back.
It allows you to monitor the running services and it facilitates common system administration tasks (such as restarting on failure, stopping, reloading configurations without downtime, modify environment variables/settings, showing performance metrics and so much more). The most interesting one is a slack notification that makes PM2 different than other processes managers.
Why you should try PM2 Enterprise?
One of our main reason that we avail the Enterprise Plan is runtime CPU Profiling without restarting the application or without any downtime. The Team behind PM2 is really awesome because they give us the opportunity to run pm2 on the trial bases for a week and we found it really helpful. If you are interested you can contact Lisa. She is a Presales Engineer at Keymetrics.
This is the reason that we are happy with PM2 to make us able to get CPU profiling at run time, before PM2 we were not able to get CPU profiling with forever. There are other tools and nodejs built-in feature that do this job but you can expect downtime or might you need to restart your application. With PM2 getting CPU profile is just one click away wow :)
This runtime CPU profiling helps us to resolve the critical issue in our application without any downtime plus we are able to see CPU stats or pattern over time which help us a lot to reduce CPU usage. You can also get historical issues.
Thanks once again PM2 Team for making such awesome tool :)
DevOps Engineer | 3x AWS Certified | Cloud Computing ??
5 年Once i start PM2 , It's damn true i never look back !! Good Work Adil M