Bobcares

Resolve Server Reached MaxRequestWorkers Setting error now!

by | Feb 19, 2020

Oops!! Are you seeing server reached the MaxRequestWorkers setting error? We can help you with it.

The webserver reaches the MaxRequestWorkers setting when the number of processes shoots up due to high traffic.

At Bobcares, we often get requests from our customers regarding the Apache errors as part of our Server Management Services.

Today, we’ll see how our Support Engineers resolve errors with Apache process limits for our customers.

 

How does Apache work?

Optimizing Apache brings in the best loading time for any website.  Let’s now check more on the major points in the working of Apache.

Apache is modular. This means we can add to or remove features from it easily. It is the Multi-Processing Modules aka MPM that provide this modularity.

MPMs are responsible for binding to network ports on the machine, accepting and handling the requests, etc. The choice of MPM and it’s setting affects the Apache functionality.

There are a number of MPMs like MPM Worker, MPM Event, MPM Prefork, etc and have many MPM values. One such MPM value is MaxRequestWorkers.

 

What exactly is the MaxRequestWorkers parameter?

This is the limit to the number of concurrent requests to be served by Apache. Any number of connection attempts above the MaxRequestWorkers limit will be queued.

Website requests always spike up during busy hours. This, in turn, generate too many Apache processes.

If this MaxRequestWorkers value is set too low, there will be long delays in loading the pages during peak hours. And, if it is set to too high, Apache exceeds the hardware limitations and may lead to a server crash.

In MPM prefork the default MaxRequestWorkers value is 256.

While increasing MaxRequestWorkers, we need to increase the value of ServerLimit also. We always take care of these scenarios while dealing with MaxRequestWorkers.

Today, let’s see how our Engineers help our customers in tweaking Apache configuration.

 

How we handle Server Reached MaxRequestWorkers Setting error

Recently, one of our customers using IPTV approached us saying that his portal was not loading properly.

So, our Engineers checked in detail and found that the load was high on the server at that time. Hence, we dug deeper into what is causing such a high load.

Lastly, we figured out that the Apache was causing such a high load. Next, we checked the number of Apache process at that point using the command below:

ps aux | grep apache | wc -l

And it gave an output of 460.

Further, we checked the logs and found an error like:

Fri Jan 03 15:02:32.958854 2020] [mpm_prefork:error] [pid 1001] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

It clearly stated that the Apache server was hitting the MaxRequestWorkers limit. Hence, we checked the value of MaxRequestWorkers in /etc/apache2/mods-enabled/mpm_prefork.conf and it was too low to handle such high requests.

So, we increased the value. For changing the settings, we followed the steps below:

Firstly, we opened  /etc/apache2/mods-enabled/mpm_prefork.conf

vi /etc/apache2/mods-enabled/mpm_prefork.conf

Then, we searched for MaxRequestWorkers and Serverlimit.

Next, we changed the values to 500 as shown:

Server Reached Max Request Workers Setting

Finally, we restarted the service using the command below:

service apache2 restart

This reduced the server load and successfully accessed the portal.

Note: The load on the server may occur due to various reasons and the server reaching the MaxRequestWorkers setting is one of such reasons. Again, increasing and decreasing the value of MaxRequestWorkers depend on the processor capacity too.

Our, Support Engineers consider all the physical resources on the server before tweaking the configuration of Apache. This ensures smooth working of the websites.

 

[Having trouble with Apache MaxRequestWorkers? We’ll fix it for you.]

 

Conclusion

In short, the fix for Server Reached MaxRequestWorkers Setting error involves tweaking the Apache parameters to handle a large number of visitors. Today, we so how our Support Engineers help customers in handling such situations.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF