Scoreboard is full,not at MaxRequestWorkers

前端 未结 4 1468
遥遥无期
遥遥无期 2021-02-19 19:55

I an using Apache and Tomcat with mod-jk in my project. My web application is in Tomcat instances. I am using Apache jmeter for testing http load on tomcat. But I\'m getting the

相关标签:
4条回答
  • 2021-02-19 20:10

    This serverfault Q&A suggests that the event mpm may have a bug. The recommended settings for at least partial workaround:

    StartServers 3
    MinSpareServers 5
    MaxSpareServers 10
    ServerLimit 250
    MaxRequestWorkers 250
    MaxConnectionsPerChild 1000
    KeepAlive Off
    
    0 讨论(0)
  • 2021-02-19 20:23

    I had this same problem. I tried different Apache versions and MPMs.

    I seem to get this alot with MPM Worker. Also error does not reoccur using Apache 2.2.2

    Are you using cPanel? IF so try /upcp --force and increase StartServers to a higher amount like 50 as that's all I did to get this error away.

    0 讨论(0)
  • 2021-02-19 20:26

    It seems that Apache tries to gracefully finish some of the processes and hangs while doing so. It might be a problem of Apache (https://bz.apache.org/bugzilla/show_bug.cgi?id=53555) or a problem of the application itself.

    You can easily check it by looking at the server-status page of apache. In order to do that you need to enable the status.conf apache module. Then go to your-server.org/server-status. You will see all the processes and threads currently being used or gracefully finishing ("G"-state). If you have to many G's that don't go away, you found your problem. It would look sth like this:

    Too many threads gracefully finishing...

    The solution is pretty simple. Just set MaxConnectionsPerChild to 0 or comment it out (mpm_event.conf). What this does is just let the process continue it's work without restarting it. That's a good thing in our case, since restarting the process let to the problem of having to many G's filling up the scoreboard and eventually crashing Apache.

    Hope that helped.

    0 讨论(0)
  • 2021-02-19 20:29

    Try EnableMMAP Off in 00_default_settings.conf

    0 讨论(0)
提交回复
热议问题