pm2 delete won't stop the process

Created on 14 Nov 2016  路  6Comments  路  Source: Unitech/pm2

I'm running a node server on port 3000. After deleting this process from pm2 and restarting it from the file, the port 3000 is in use with a process ( if I kill that process its started again with another pid ). It seems pm2 is not deleted that process

Need More Data

Most helpful comment

You might have another PM2 daemon running somewhere else on your computer. Check with ps aux | grep PM2.

All 6 comments

You might have another PM2 daemon running somewhere else on your computer. Check with ps aux | grep PM2.

We also need your Node.js version, PM2 version

The problem was the multiple pm2 process. I killed another one and my problem solved. Tnks.

+1 encounter the problem. but my server is used by many people, they sometimes run 'pm2' command on other users. What should I do other than write a 'monitor app' to kill pm2 instances from other users?
@vmarchaud

subscribing. pm2 doesnt kill processes and it would be great to have a delete+kill command.

subscribing. pm2 doesnt kill processes but startup procedures are aribtratily complex - often multiple processes are spawned from a single command for delete + kill to work pm2 would need access to a list of spawned processes from "start".

Was this page helpful?
0 / 5 - 0 ratings