raising the MaxRequestWorkers
Hi, just got this message in my apache log :
[mpm_worker:error] [pid 13825:tid 139805119400000] AH00287: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting
I'm using the defaults (Server Limit, Max Request Workers etc) in apache configuration.
Should i raise the MaxRequestWorkers only, or the Server Limit too?
My system uses 32gb of ram, about 20-25gb is buff/cached right now, mysql is set with :
[OK] Maximum reached memory usage: 9.6G (30.60% of installed RAM)
[OK] Maximum possible memory usage: 19.9G (63.57% of installed RAM)
Thank you,
-
Hello, You can browse to "WHM " Service Configuration " Apache Configuration " Global Configuration" in order to increase the "Max Request Workers" limit. Per it's description, this directive sets the limit on the number of simultaneous requests that will be served. This interface allows up to the value of the ServerLimit setting, thus you must also increase the ServerLimit setting so it's at least the same value as the "Max Request Workers" limit. Thank you. 0 -
Actually for Worker and Event MPMs, MaxRequestWorkers can and should Exceed the ServerLimit because in those configurations MaxRequestWorkers is measured in threads and ServerLimit is processes where ServerLimit x ThreadsPerChild = MaxRequestWorkers. The Global Configuration interface only calculates correctly for Prefork and just gets in the way when doing Worker and Event due to it's incorrect requirement of the serverlimit. I detailed more about this and how to workaround it in this post: Using 'Global Configuration' for MPM Worker There was talk about needing a feature request for this, but it's really a bug that should be fixed. For some reason it's never acknowledged. 0
Please sign in to leave a comment.
Comments
2 comments