Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 module keeps restarting #5948

Open
flo-jan opened this issue Feb 11, 2025 · 2 comments
Open

pm2 module keeps restarting #5948

flo-jan opened this issue Feb 11, 2025 · 2 comments

Comments

@flo-jan
Copy link

flo-jan commented Feb 11, 2025

I have pm2 managing some nodejs services that I start with the command:

pm2 start /home/myuser/.node-environments/ecosystem.config.js

this works well, a subsecutive pm2 ls command shows

Image

When I come back after some days however, an additional process has started that hogs my server's cpu because it keeps restarting

Image

It is not clear where this process comes from, it might have to do with a server restart. Anyway, I can simply stop and delete the process (that always has id 0). Stopping the process does not affect my running applications.

Can someone explain my what happens here, what could be the cause and how I can fix it.

@GreenFlag31
Copy link

I have no idea, but a bug in your code cause a server crash, which then triggers a restart over and over ?

@flo-jan
Copy link
Author

flo-jan commented Feb 17, 2025

But in that case, I would expect an attempted restart on the application itself. But as you can see in the output, pm2 lists 0 restarts on any of the running applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants