Posted on November 25, 2013 at 10:43 pm
To fix this error message:
[note] sockets disabled, connection limit reached |
You need to increase the max-fds and max-connections limit.
Add these lines in the lighttpd.conf file:
server.max-fds = 8192 server.max-connections = 4096 |
Restart Lighttpd:
/etc/init.d/lighttpd restart |
Now type:
cat /proc/`ps ax | grep lighttpd | grep -v grep | awk -F " " '{print $1}'`/limits |grep "Max open files" |
You should get as output:
Max open files 8192 8192 files |
I would recommend to also edit the file limits.conf:
vi /etc/security/limits.conf |
And add these lines:
# wildcard does not work for root, but for all other users * soft nofile 4096 * hard nofile 32768 # settings should also apply to root root soft nofile 4096 root hard nofile 32768 |
Then reboot the system:
shutdown -r now |
Useful links:
Docs Performance – Lighttpd – lighty labs
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens