max_clients
This is an old revision of the document!
CentOS
ps afx | grep httpd | wc
pstree | grep httpdOutput shows how many connections apache currently has
What is the number of max connection the server has been configured for?
grep -i maxclients /etc/httpd/conf/httpd.conf
When did apache hit max clients?
grep -i maxclients /var/log/httpd/error_logHas it happened before?
zgrep -i maxclients /var/log/httpd/error_log*
CentOS
ps -H h -ylC httpd | perl -lane '$s+=$F[7];$i++;END{printf"Avg=%.1fMB\n",$s/$i/1024}'
Ubuntu
ps -H h -ylC apache2 | perl -lane '$s+=$F[7];$i++;END{printf"Avg=%.1fMB\n",$s/$i/1024}'
max_clients.1436192576.txt.gz · Last modified: 2024/05/23 07:26 (external edit)