I’m optimizing some scripts that split our apache logs each night. I gotta admit Apache’s ‘split-logfile’ script written in perl is a LOT faster than doing it via f.example bash . But splitting up a log file with more than 2000 vhosts resluted in the script crashing. I had to up my ‘open files’ limit with :
# ulimit -n 4096 #
http://www.debian.org/doc/manuals/securing-debian-howto/ch4.en.html
http://httpd.apache.org/docs/2.0/programs/other.html