-
Notifications
You must be signed in to change notification settings - Fork 48
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
ManagedFastCgiListener not closing sockets #23
Comments
Do you see this issue only with managed listener? Did you try NativeListener? With managed listener: what if you change |
For the NativeListener I need libevent2 which I am avoiding due to a All connections claim to be connected and I got up to 64k of them. When Yes I can try 60s keepalive
|
With keepalive 60 and ab concurrent connections 50 nginx should not create any additional connections so the number of opened connection should not grow. If it grows it is probably something wrong with nginx installation. If it does not grow then the issue on HFC/mono side. |
Ah I see what is happening now thanks. With that scenario you are correct I have no problem. However I read up on this:
Obviously my test was an extreme example but the occasional extra connection nginx opens is never closed ( |
A quick update. I toyed with some changes (hacks) to clean up stale connections with some success but moved on with performance testing using the higher number of keepalive sockets workaround above. Using a small vagrant vm and apache bench i get: helloworld equivalent - something static
in-memory-response - something cpu bound with no other i/o like database
So perhaps the better solution (when nginx and hyperfastcgi are co-located) is to turn off keepalives. As for this bug report, I feel like this is an nginx issue where by nginx should be configurable to not send On a wild tangent, be very wary of the default |
Hello. Great work with the project. Unfortunately I am having issues with the ManagedFastCgiListener under CentOS 6.
Have you seen this problem where many sockets are not closing?
I can reproduce with
ab -t60 -n 50000 -c 50 'http://somehost'
and watching the sockets/file descriptors climb (netstat -ap | grep mono | wc -l
andls -l /proc/
pidof mono/fd
) until hyperfastcgi hits the ulimit and crashes.hyperfastcgi
nginx
mono is a custom build of 3.2 which is not the newest so I haven't ruled that out yet.
The text was updated successfully, but these errors were encountered: