Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster mode opens new shell for each fork #1749

Closed
dwelle opened this issue Nov 4, 2015 · 8 comments
Closed

cluster mode opens new shell for each fork #1749

dwelle opened this issue Nov 4, 2015 · 8 comments

Comments

@dwelle
Copy link

dwelle commented Nov 4, 2015

pm2 start server.js -i 4

starts 4 new node shell windows, which then of course reopen every time you save a file (if you watch for changes).

Doesn't matter if started via CLI or config.

Only solution is to use --no-daemon switch, but then you have to open another shell for monitoring.

pm2 version 0.15.9, Node 4.2.1, Windows 7.

@pauloavelar
Copy link

Any update on this issue? I'm using fork mode for now, but in Prod I will need many instances in parallel. Still happening in pm2 v1.0.0, Node v5.5.0.

@muratsu
Copy link

muratsu commented Feb 6, 2016

+1

1 similar comment
@keymsg
Copy link

keymsg commented Mar 10, 2016

+1

@nakamorichi
Copy link

Still no fix?

@mmojica53
Copy link

mmojica53 commented May 3, 2016

I have the same issue! any updates? I also, have multiple restarts which ends in a crash. the node index.js is working fine as well as the npm start
I tried serveral PM2 versions without luck, my node version is 4.4.3
Windows Server 2012

@vlapo
Copy link

vlapo commented Jul 9, 2016

+1

@Unitech
Copy link
Owner

Unitech commented Jul 11, 2016

With @vmarchaud we are having a hard time to find a solution to this issue. Node.js on Windows seems to behave like that when you create a new detached process.

If someone have a clue about that, please let us know.

@vmarchaud
Copy link
Contributor

close this one in favor of #2182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants