Hi,
I have a web application (using apache) and for the past 2 months I am getting the below error in my production environment. I want to re-produce the same issue in my non-production environment, could you please let me what all are the parameters I have to modify in order to do that. Also I don't want to open too many sessions for this, please help me in re-producing this issue by opening minimal sessions.
Error :- [error] server reached MaxClients setting, consider raising the MaxClients setting
Below are my apache settings:
I have read multiple blogs to understand this, but could not able to understand the settings,so please help me on this. Thanks.
32 MaxClients can be relatively low, but before raising it you need to look at what your current MaxServers setting is. MaxClients cannot exceed MaxServers (MaxServers sets the hard limit).
Please post your MaxServers parameter from your apache2.conf file.
Edit: Corrected mistakes in this post below ... Neo
You can simulate the error message in your lab by reducing the MaxClients from 32 to 2 as an example and restart the webserver. From their, open 3 browser connections to the webserver. The first 2 will success and the 3 will timeout. Take a look at the error log and you should see the corresponding message.
What kind of page were you accessing for your test? If the pages being tested are small you may not see a timeout however you may see a delay before the page is served on attempt #3 and #4. These tests do have to be simultaneous in order to get the desired effect. Have you taken a look at the errors log to see if the message is being produced?