User Tools

Site Tools


max_clients

This is an old revision of the document!


CentOS

ps afx | grep httpd | wc
Output 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)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki