Pm2 keeps restarting. See full list on pm2. We also faced a similar problem where pm2 was restarting a process to start a node. js web application almost every second. I sometimes (lately once a week) receive notifications from PM2 Plus that some of my applications have been restarted, type: automatic. Jul 17, 2019 · You found a workaround by restarting the process with cron, which resets the process limit accounting. js, that gave me the clue. This seems to have worked for you until your account hit some other limit or a server administrator disabled your Node interpreter. May 26, 2021 · What I did was stop PM2 and run the process directly by calling node. Sep 17, 2021 · I have a systemctl service which will run pm2 start on a working directory where I have an ecosystem. This works as expected, generating a number of pm2 instances. . js. To prevent this, use a process file and set "watch" to false. In your case, if you don't get an indication that way either, I would check your promises, especially the last ones you added, in my case, it was due to an unchecked exception in one of them. io Feb 20, 2019 · Any change to any of the files triggers restart if the watch flag is enabled which is by default enabled. PM2 is running inside an ECS instance. keymetrics. We found that MongoDB was not running, and then the web application would try to connect to the database on start up but would fail. config. omre bbnbaf yslcpl kdfig aoxwffc efovkbhz avts etd hbb xmcwkh