I have got "Too many open files" error on my server and after checking lsof I found huge number opened files for error logs.
lsof | grep /var/log/ispconfig | wc -l
The server have ~ 1200 virtual hosts.
One line looks like this
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 30294 www-data 615w REG 251,0 3276350 10237337 /var/log/ispconfig/httpd/myhost/error.log
and there are ~ 150 lines like this for single vhost.
What could cause this?