What should I do if Server reached MaxRequestWorkers setting

Sometimes if Apache instance may throw errors like "Connection Timeout", "Gateway Timeout" or "Site not reachable".

 

The first step you should take is to check your Apache Logs.
Check if logs showing something like below

 

[Mon Jul 19 08:10:51.957286 2021] [mpm_prefork:error] [pid 4256] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting



This means in the httpd configuration file you need to increase MaxRequestWorkers.
You cannot simply increase it as cloudjiffy will automatically restore default configuration on environment restart.

 

Steps to increase MaxRequestWorker:

Login to Dashboard

Go to your environment

Go to Application server (if you have taken "Apache" application server)

Select "config" option ---> select "conf" folder ---> select httpd.conf


1. Open httpd.conf

2. Remove jelastic auto-config line from httpd.conf

3. Increase MaxRequestWorkers in Prefork section

Make sure to remove the Jelastic autoconfiguration line from the config file and save the changes. We've provided a screenshot of the configuration file below, based on the web server setup.

  • Apache PHP - “# Jelastic autoconfiguration mark” within the /etc/httpd/conf/httpd.conf file

Apache PHP autoconfiguration mark

 

NGINX PHP - “; Jelastic autoconfiguration mark” within the /etc/php-fpm.conf file

 

Litespeed Webserver- You need to set the JELASTIC_AUTOCONFIG environment variable to false (disabled)

4. Save and restart Container

5. Done.

Once done with the above steps then check with the website.

 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 1761