We are using apache 2.2.21 on RHEL6.9 and in Backend we are using Tomcat AppServer with JavaBased CMS.
We are using Apache to connect Tomcat by MOD_JK and mapping the URL (Attached VirtualHost.conf), and No applications/code are running on WebServers.
1. Two WebServers (4 CPU & 8GB RAM on Each Servers)
2. Two TomcatServers (8 CPU & 16GB RAM on Each Servers
)
PROBLEM:
When the Child Process count is reached / crossed 200 like below then site is not accessible when the child processes reached 300 or More than site crashed and then we bring the site back by restarting Apache.
When the Child Processes reaching 200 during the time Google Analytics shows the ACTIVE/CONCURRENT Users are 140-160. We have two Apache & Tomcat Servers with Load-balancing but its unable to serve more than 150 concurrent users. Kindly please check my configuration and help to allow at-least 500 concurrent users.
http_error.log:[Thu Dec 05 11:05:13 2019] [info] [client 0.0.0.0] (32)Broken pipe: core_output_filter: writing data to the network
[Thu Dec 05 11:05:13 2019] [info] [client ::1] (32)Broken pipe: core_output_filter: writing data to the network
[Thu Dec 05 11:06:47 2019] [error] [client 0.0.0.0] (70007)The timeout specified has expired: proxy: error reading status line from remote server
stg.test.com[Thu Dec 05 11:06:47 2019] [error] [client 0.0.0.0] proxy: Error reading from remote server returned by /research
[Thu Dec 05 11:06:47 2019] [info] [client 0.0.0.0] (32)Broken pipe: core_output_filter: writing data to the network
[Thu Dec 05 11:06:49 2019] [info] [client ::1] (32)Broken pipe: core_output_filter: writing data to the network
[Thu Dec 05 11:07:02 2019] [info] [client 0.0.0.0] (32)Broken pipe: core_output_filter: writing data to the network
error_log[Wed Dec 04 14:24:24 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 0 idle, and 165 total children
[Wed Dec 04 14:24:25 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 0 idle, and 197 total children
[Wed Dec 04 14:24:26 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 0 idle, and 229 total children
[Wed Dec 04 14:24:27 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 0 idle, and 261 total children
[Wed Dec 04 14:24:28 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 0 idle, and 293 total children
[Wed Dec 04 14:24:40 2019] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 324 total children
--
Thanks & Regards,
Jayaram Ponnusamy