Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You shouldn’t use pm2 in software containers. That makes things more complex and not standard.


Can echo this. A colleague’s node container was maxing out CPU and just removing PM2 and running node directly solved the problem. That was easier than debugging why PM2 was having such a hard time.

To be fair, it was a straight up conversion of an old VM in vagrant and Docker was looked at as a one to one replacement before learning otherwise.


It gives you a bunch of stuff you don’t get running the script directly, and costs nothing, so why wouldn’t I opt for that?

They even have an explicit, “run in container” mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: