Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.59k stars 2.62k forks source link

Multiple issues on Windows #5914

Open el1s7 opened 1 week ago

el1s7 commented 1 week ago

You should do more testing in windows, there are quite a few bugs, which seems weird for a library this popular.

These are some of the issues that are occurring to me:

  1. Shutting down an app in windows doesn't work at all, your process killing system is buggy in windows. After spending some time, I found out that the only thing that works is the shutdown_with_message option. Wouldn't it be better to actually fix the process management in Windows, instead of providing a workaround that needs additional work?
  2. Even with the shutdown_with_message option, the cron_restart option still doesn't work, it will not close old processes and leave them detached, just popping up more instances of the app.
  3. And another issue, after a few days running, for some reason, the PM2 daemon gets detached from the app somehow, the app is still running but the PM2 doesn't have any control over it, sometimes it just shows "stopped" while the app is still running and even outputting logs, and calling "pm2 stop" won't do anything.

This behavior is seen in:

Windows 11, Windows Server. Latest PM2 version (5.4.2).

I like this library and all the efforts put into it, but it has been a bit annoying to deal with these issues, but I guess it's because it's mainly tested on Linux systems, and that's where most people use it.

But how are you even offering a premium plan when this doesn't even work properly on different operating systems?