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

Sometimes Locks Socket/Port Until Killed #350

Closed
jvanalst opened this issue Mar 13, 2014 · 7 comments
Closed

Sometimes Locks Socket/Port Until Killed #350

jvanalst opened this issue Mar 13, 2014 · 7 comments
Labels

Comments

@jvanalst
Copy link

This is on Mac OS X v10.8.2, node v0.10.26 and pm2 -V 0.7.8.

Sometimes when restarting/deleting/stopping a web server process the port remains open and stuck in the CLOSE_WAIT state. The only way to free the port and restart your application is to kill the pm2 Satan Daemonizer. (either with pm2 kill or sudo kill ###)

As you can imagine, having to kill pm2 is not an ideal solution if you have more than one application running at a time.

Jeff

@soyuka soyuka added the bug label Mar 13, 2014
@cadorn
Copy link

cadorn commented Mar 20, 2014

I am running into same issue.

@soyuka
Copy link
Collaborator

soyuka commented Mar 20, 2014

same here

@Unitech
Copy link
Owner

Unitech commented Mar 20, 2014

It's due to issues related to the cluster module on 0.10.x - #74

@cadorn
Copy link

cadorn commented Mar 20, 2014

I am using fork mode.

@hustcer
Copy link

hustcer commented Aug 23, 2014

Same here.

@Unitech
Copy link
Owner

Unitech commented Oct 11, 2014

DONT USE cluster_mode with Node 0.10.x ! Only Node 0.11.X (0.11.14 prefered)

@vachanda
Copy link

I'm facing similar issue with PM2 version 1.1.2. Node version is 5.7.1.

We're using PM2 to power our node application behind nginx. PM2 is running in cluster mode. After each of out deployment we perform PM2 reload all operation to perform a zero downtime restart. But we find that PM2 still maintains some socket connections with close_wait state.

image

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

No branches or pull requests

6 participants