cat /proc/sys/net/core/somaxconn
Will show you how many connections you can have. This should be 1024, because Phusion Passenger is hard coded for this value. Mine was 128!
Do this:
sudo sysctl -w net.core.somaxconn=1024
And then restart nginx.
Just some things from my work developing RoR applications.
cat /proc/sys/net/core/somaxconn
sudo sysctl -w net.core.somaxconn=1024
1 comments:
To make this change permanent you need to add
/etc/syctl.d/61-net.core.maxsoconn.conf
With this value.
Post a Comment