This guide is an example for Debian based systems but can be adopted to nearly every *nix based system.
Apache Tuning (mod_php)
Since pimcore uses the Zend Framework and other big libraries, apache has to load a huge amount of files for each request. The problem is that many linux distributions set limits for each user, and also for the user which is running the httpd. On Debian based systems the limit for open file handles is mostly 1024, that is enough for the most use cases, but not for high traffic websites.
Follow the following instructions to fix the problem
| Please note that the following instructions are only tested with Debian 5.0 |
Execute the following commands:
echo "* soft nofile 1024" >> /etc/security/limits.conf echo "* hard nofile 262144" >> /etc/security/limits.conf echo "session required /lib/security/pam_limits.so" >> /etc/pam.d/login echo 262144 > /proc/sys/fs/file-max echo "ulimit -n 262144" >> /etc/default/apache2
After that restart apache.
/etc/init.d/apache restart