怎样提高Apache的ThreadsPerChild设置

在测试php代码的时候,看到apache的错误日志报错:Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

怎样提高Apache的ThreadsPerChild设置

文章插图

需要这些哦
Apache
wampserver
Windows操作系统
方式/
1查番英没看错误信息,wampserver节制面板里面找到apache_error.log文件,如下图所示选兼:
怎样提高Apache的ThreadsPerChild设置

文章插图

2解决过程的
:打开wampserver节制面板里面找到httpd.conf文件,如下图所示:
怎样提高Apache的ThreadsPerChild设置

文章插图

3【怎样提高Apache的ThreadsPerChild设置】打开httpd.conf文件,查询关头字‘httpd-mpm’,如下图所示:去失落前面的#号 。
怎样提高Apache的ThreadsPerChild设置

文章插图

4在Apache的安装目次下,找到并点窜httpd-mpm.conf文件参数ThreadsPerChild,MaxConnectionsPerChild,如下图所示:
怎样提高Apache的ThreadsPerChild设置

文章插图
怎样提高Apache的ThreadsPerChild设置

文章插图
怎样提高Apache的ThreadsPerChild设置

文章插图

5重肥王启Apache办事器
怎样提高Apache的ThreadsPerChild设置

文章插图


以上内容就是怎样提高Apache的ThreadsPerChild设置的内容啦,希望对你有所帮助哦!

    推荐阅读