我有一段时间想解决的问题。我在Windows VM和服务器上使用Bitnami WordPress版本,并且服务器工作正常,但是当Apache达到1GB RAM时,它会自动重新启动,并且在错误日志中,我收到以下错误:
Fatal error: Out of memory
我尝试了许多配置,但现在问题并不普遍,但是当 httpd.exe 进程达到1GB RAM时,问题再次发生。
这是我的虚拟机设置:
WP-CONFIG.php:
define( 'WP_MEMORY_LIMIT', '3000M' );
httpd.conf:
Timeout 10
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
httpd-mpm.conf:
<IfModule mpm_winnt_module>
ThreadsPerChild 300
MaxRequestsPerChild 0
</IfModule>
<IfModule !mpm_netware_module>
MaxMemFree 2048
</IfModule>
<IfModule mpm_netware_module>
MaxMemFree 100
</IfModule>
.htaccess:
php_value memory_limit 3000M
php_value post_max_size 128M
php_value max_execution_time 120
php_value max_input_time 300
php_value upload_max_filesize 64M
任何想法/解决方案如何解决Apache Server(httpd.exe)达到1GB RAM时重启的问题?
非常感谢!