lighttpd server crashes with fllowing error in error_log file.
2019-11-05 09:39:02: (network_linux_sendfile.c.143) open failed: Too many open files 2019-11-05 09:39:02: (connections.c.603) connection closed: write failed on fd 1228 2019-11-05 09:39:02: (response.c.537) file not found ... or so: Too many open files /4032/1_451.jpg ->
As lighttpd is a single-threaded server, its main resource limit is the number of file descriptors, which is set to 1024 by default (on most systems).
If you are running a high-traffic site you might want to increase this limit by setting server.max-fds.
server.max-fds = 8192
[root@server22 lighttpd]# cat /proc/sys/fs/file-nr 4544 0 95873 [root@server22 lighttpd]#
Related Posts
Leave a Reply