pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Duplicate Procceses

Open D3ltaa opened this issue 1 year ago • 4 comments

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?

D3ltaa avatar Dec 30 '24 16:12 D3ltaa

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!

VikashChoudahry avatar Jan 16 '25 18:01 VikashChoudahry

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

D3ltaa avatar Jan 26 '25 13:01 D3ltaa

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.

VikashChoudahry avatar Jan 27 '25 10:01 VikashChoudahry

Any update on this?

msi-martinsen avatar Jun 04 '25 10:06 msi-martinsen