max_clients
This is an old revision of the document!
CentOS
ps afx | grep httpd | wcOutput 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
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.1429689832.txt.gz · Last modified: 2024/05/23 07:26 (external edit)