zoukankan      html  css  js  c++  java
  • Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

    最近每天半夜,服务器都会出现崩掉的现象,pc  app 都不能正常使用

    查看错误日志发现问题所在:

    [Wed Nov 09 08:07:28.651642 2016] [mpm_winnt:error] [pid 4256:tid 2692] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
    Starting the Apache2a service
    The Apache2a service is running.
     

    根本原因是:wampserver或者phpstudy 的apache默认的进程数为64,所以我们需要对它进行扩大

                   百度看了一些文章得出解决方法.

                   在conf/httpd.conf里面加上下面的几行代码,然后重启apache服务就OK啦!这样开启了512工作线程,前提是设置的这个值需要和你的服务器硬件配置相关。

    <IfModule mpm_winnt_module>
    ThreadsPerChild 512 
    MaxRequestsPerChild 0
    </IfModule>
  • 相关阅读:
    JSP介绍
    Cookie和Session的原理及异同
    过滤器的使用
    JAVA 集合
    **JVM** 类加载机制
    *JAVA IO/NIO*
    jvm
    ioc
    spring问题总结
    aop详解
  • 原文地址:https://www.cnblogs.com/gyrgyr/p/6046387.html
Copyright © 2011-2022 走看看