Saturation/Limitation in Apache?
Hi,
I've noticed that there is a problem when several users connect simultaneously, I've increased the "Server limit", the number of requests, etc. However, it continues to saturate when 6000 users enter at the same time. Is there a security measure in the Cpanel or how can I fix it?
My server has 32 GB of RAM.
Note: If I restart the Apache service it already runs smoothly. [CODE=apacheconf]StartServers 30 MinSpareServers 40 MaxSpareServers 80 ServerLimit 20000 MaxRequestWorkers 20000 MaxConnectionsPerChild 40000 KeepAlive On KeepAliveTimeout 5 MaxKeepAliveRequests 0 Timeout 300
Regards.
[0.267508] Memory: 32498972K/33227904K available (20504K kernel code, 1165K rwdata, 6924K rodata, 1164K init, 4204K bss, 728932K reserved, 0K cma-reserved) total used free shared buff/cache available
Mem: 32667316 1263084 27053292 231544 4350940 30711680
Swap: 1046520 0 1046520
Total: 33713836 1263084 28099812Note: If I restart the Apache service it already runs smoothly. [CODE=apacheconf]StartServers 30 MinSpareServers 40 MaxSpareServers 80 ServerLimit 20000 MaxRequestWorkers 20000 MaxConnectionsPerChild 40000 KeepAlive On KeepAliveTimeout 5 MaxKeepAliveRequests 0 Timeout 300
Regards.
-
What, if anything is output to the apache error logs? They're located at /etc/apache2/logs/error_log0 -
Hello @mamm The reason for your apache/server stalling could be from many reasons. Any one of your sites could be using a lot of RAM/CPU resources through php code or database query. You can check the resources consumption by looking at the currently processes via top command and also check the mysql processes. Also you can check the traffic on your webserver via the netstat command. Also you can have a look at the EasyApache configuration and I would suggest using one of the templates that are given in the EasyApache4 page, they are very well configured with php and apache modules/extensions. if none of these work I would suggest getting your server analyzed and get behind DDos protection. Regards, 0 -
Hello @HostNoc, thank you very much for the answer, I've noticed that only the domain account that I use is saturated, that is, everything else is normal, are there any limitations on CPanel accounts in resources? 0
Please sign in to leave a comment.
Comments
3 comments