我在 MediaTemple (dv) 服务器上使用 mpm_prefork 运行 Apache2。最近我的服务器配置没有发生重大变化。httpd.conf 当前设置如下:
MaxKeepAliveRequests 200
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 10
MaxClients 200
MaxRequestsPerChild 4000
</IfModule>
Run Code Online (Sandbox Code Playgroud)
但是我在 apache 全面崩溃之前收到以下错误:
[Thu Jun 04 18:30:24 2009] [warn-phpd] mmap cache can't open /var/www/vhosts/mydomain.com/httpdocs/filename.php - Too many open files in system (pid 19873)
Run Code Online (Sandbox Code Playgroud)
当 Apache 崩溃时,我对照看这个服务器来重新启动它感到恼火。帮助?