Quick note: apache 2.4 - Max Clients is now named MaxRequestWorkers
You can find the apache values in:
/etc/httpd/conf/httpd.conf
OR
/etc/httpd/conf.modules.d/00-mpm.conf
If no value has been set then chances are the default of 256 is set. (Tip: run apache2buddy to find out the value if you are having trouble working it out)
Best command to find the current apache processes is:
1 |
pstree | grep httpd |
1 |
ps afx | grep httpd | wc |
1 |
grep -i maxclients /etc/httpd/conf/httpd .conf |
1 |
grep -i maxclients /var/log/httpd/error_log |
1 |
zgrep -i maxclients /var/log/httpd/error_log * |
1 |
grep -i maxc /etc/httpd/conf/httpd .conf | head -3 |
1 |
grep -i maxc /etc/apache2/apache2 .conf | head -4 |
1 |
grep -i maxc /etc/apache2/mods-enabled/mpm_prefork .conf |
1 |
pstree | grep httpd |
1 |
grep -i maxclients /var/log/apache2/error_log |
1 |
zgrep -i maxclients /var/log/apache2/error_log * |
1 |
pstree | grep apache |
1 |
ps -H h -ylC httpd | perl -lane '$s+=$F[7];$i++;END{printf"Avg=%.1fMB\n",$s/$i/1024}' |
1 |
ps -H h -ylC apache2 | perl -lane '$s+=$F[7];$i++;END{printf"Avg=%.1fMB\n",$s/$i/1024}' |