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

Duplicate Procceses #5938

Open
D3ltaa opened this issue Dec 30, 2024 · 3 comments
Open

Duplicate Procceses #5938

D3ltaa opened this issue Dec 30, 2024 · 3 comments

Comments

@D3ltaa
Copy link

D3ltaa commented Dec 30, 2024

When I try to restart the process using pm2 restart or pm2 reload, it ends up creating duplicate processes. Even if I stop them, they continue running somewhere, and I have to restart the entire server.

Anyone has an idea on that?

@VikashChoudahry
Copy link

Hi @D3ltaa, Could you please share some more details? I have tried reproducing at my end, it seems to be working fine for me.

Steps that I followed to reproduce:

  1. Created a simple node.js app.
  2. Installed pm2 globally.
  3. Start the node.js app using pm2.
  4. Restarted the process using both pm2 restart <pid> or pm2 reload <pid>

Outcome: Using pm2 list, I could see only processing running.

Used versions:
node.js: 16.15.1
pm2: 5.4.3

Thanks!

@D3ltaa
Copy link
Author

D3ltaa commented Jan 26, 2025

Hi @D3ltaa, Could you please share some more details? I have tried reproducing at my end, it seems to be working fine for me.

Steps that I followed to reproduce:

  1. Created a simple node.js app.
  2. Installed pm2 globally.
  3. Start the node.js app using pm2.
  4. Restarted the process using both pm2 restart <pid> or pm2 reload <pid>

Outcome: Using pm2 list, I could see only processing running.

Used versions: node.js: 16.15.1 pm2: 5.4.3

Thanks!

Im using latest node.js and pm2 versions. The steps im doing is “pm2 restart ” but in list it dispaing one of each app but it running 2 times in the bg

@VikashChoudahry
Copy link

Hi @D3ltaa, Could you please share some more details? I have tried reproducing at my end, it seems to be working fine for me.
Steps that I followed to reproduce:

  1. Created a simple node.js app.
  2. Installed pm2 globally.
  3. Start the node.js app using pm2.
  4. Restarted the process using both pm2 restart <pid> or pm2 reload <pid>

Outcome: Using pm2 list, I could see only processing running.
Used versions: node.js: 16.15.1 pm2: 5.4.3
Thanks!

Im using latest node.js and pm2 versions. The steps im doing is “pm2 restart ” but in list it dispaing one of each app but it running 2 times in the bg

I see. Let me try re-producing that again.

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