I've had a problem with Apache since this morning, I can no longer access the websites.
I get the error: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
I'm using the mpm_event
.
Server memory: 15GB (16GB - 1 dedicated)
I tried increasing the parameters:
ServerLimit 750
ThreadsPerChild 25
MaxRequestWorkers 725
Another strange thing is linked to the fact that when I launch: systemctl status httpd.service
In the processes I only see /usr/sbin/httpd -DFOREGROUND
and therefore I can't even understand if there is some process/script that is blocking.
Thanks in advance, Matteo
/etc/apache2/mods-enabled/mpm_prefork.conf
grep -R "MaxRequestWorkers" /etc/apache2/
orgrep -R "MaxRequestWorkers" /etc/httpd/
. And then restart apacheapachectl -k graceful
netstat -an | egrep ":80|:443" | egrep '^tcp' | grep -v LISTEN | awk '{print $5}' | egrep '([0-9]{1,3}\.){3}[0-9]{1,3}' | sed 's/^\(.*:\)\?\(\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\).*$/\2/' | sort | uniq -c | sort -nr | sed 's/::ffff