There are, of course, more options available. It could be useful when you have a limited amount of RAM at your disposal, and you want to distribute the memory evenly amongst your applications. max-memory-restart - You can use this option to limit the amount of memory a node app can use. log - This flag will allow you to define a log file where PM2 will add entries, should there be any issues with your node app. watch - This flag will tell the PM2 manager to restart the NodeJS process whenever it detects a file change. It is useful when you have more than one app added to the PM2 manager to differentiate them. name - You can use this flag to name your application. Here are a few useful options you can add to the command: Where "app.js" is your application startup file, this file can have different names so please, adjust the command accordingly. The most straightforward method is by typing the following command over the terminal inside the root directory of your app: In this article, we will introduce you to the basics of PM2 and teach you how you can use it to control the flow of your node applications! Let's begin. This means our customers can start using it immediately when they purchase our services and have a NodeJS application they want to deploy! Thus we preinstalled PM2 on all hosting plans. Of course, we at HostArmada want to offer our clients the best tools to manage their NodeJS applications. It runs as a daemon on the server and will make sure your app is available 24/7/365! No need to ssh into your servers and use pm2 logs anymore, everything is on the web interface.Ĭheckout the realtime logs Third-party modulesĮxtend the capabilities of the PM2 Plus dashboard by using external modules listed in our module docs.PM2 is an advanced process manager for NodeJS applications that allows you quickly start, control, or stop your node processes. PM2 Plus allows you to see the logs of all of your applications managed by pm2 in one place in the cloud. See how to use custom actions Realtime logs It is the PM2 part responsible for gathering the metrics, reporting exceptions, exposing remote actions and every outside interaction with your application. You will to use the the module comes along with PM2. In other words you can expose triggerable functions in your code. PM2 Plus makes possible to enhance custom functions in the source code of your application.įor example, you can assign values to your application variables or just switch it to maintenance mode. Drill down in your code and get the answer.Ĭheckout the Issue Dashboard Custom Actions Stop spending time finding bugs or trying to replay them, we provide you an “Issue Dashboard” with everything in one place, to make debugging easier. PM2 Plus reports the list of all errors in the “Issue Dashboard” occurred in your Node.js and gets you notified. Be notified and reactive in any critical situations. Know when an error occurred in your application or when your production application is down.Įven though PM2 makes sure that your application have no downtime, be notified in these critical situation in order to react. Get an aggregated view over all your applications.Ĭheckout the specific views Metrics HistogramĮxpose the important variables from your Node.js applications source code and display them as performance metrics on the PM2 Plus dashboard. Stop ssh in all your servers one by one, instead, save time by having a condensed infrastructure plus view.Ĭheckout the specific views Application Overview PM2 Plus allows you to have an extended view of all your apps and databases in one single place, at real-time or through history. To start testing, you can either go to or use the pm2 cli (pm2 above 3.2.7):įeatures available in PM2 Plus Server overview It’s a set of features for both hardening your current PM2 Runtime Process manager and monitoring applications in production. Once you go serious about production, you need to make sure that your application is running properly, without bugs, without performance issues and without downtimes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |