Duplicate Procceses
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?
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:
- Created a simple node.js app.
- Installed pm2 globally.
- Start the node.js app using
pm2. - Restarted the process using both
pm2 restart <pid>orpm2 reload <pid>
Outcome: Using pm2 list, I could see only processing running.
Used versions: node.js: 16.15.1 pm2: 5.4.3
Thanks!
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:
- Created a simple node.js app.
- Installed pm2 globally.
- Start the node.js app using
pm2.- Restarted the process using both
pm2 restart <pid>orpm2 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
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:
- Created a simple node.js app.
- Installed pm2 globally.
- Start the node.js app using
pm2.- Restarted the process using both
pm2 restart <pid>orpm2 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.
Any update on this?