Easiest way to monitoring when Apache reach MaxClients.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

It is my very first email to community asking help and advices to Apache
system administration. I have worked with Apache since 2004 on CentOS
distribution most of the time.

Currently I am worried about MaxClients. I work today with Apache 2.2.16
with prefork and KeepAlives disabled. I can't explain that, I should do some
test to verify Apache has more performance with KeepAlives on , it is
something historic I could say. I know there are differences between prefork
and mpm but I think it is a high level for me today.

Anyway I am working to discover how discover when Apache reach MaxClients.
And I having different sensations depending which command I execute on bash.

Which I try to explain is:

-bash-3.2# netstat -anp |grep :80|wc -l
2

Connections (whatever type of connections) against port 80. However, one
thing is the connections and other the processes of Apache:

-bash-3.2# ps axuf |grep httpd
root     15427  0.0  0.0   5184   696 pts/0    S+   12:48   0:00      \_
grep httpd
root     17477  0.0  1.1  45216  8568 ?        Ss   11:51   0:00
/usr/sbin/httpd
apache   17480  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17481  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17482  0.0  0.5  45216  4536 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17483  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17484  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17485  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17486  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd
apache   17487  0.0  0.5  45216  4540 ?        S    11:51   0:00  \_
/usr/sbin/httpd


And then my doubt. In working environment, to be able to control "Clients"
of Apache, to avoid or maintain a monitoring of MaxClients reached, how to
monitor? Processes or Connections? I think will be something more closer to
processes, using ps, than something related with Tcp connections and
netstat.

Well, any advices will be welcome.

Thanks!







Rubén Ortiz
Administrador de Sistemas 
Edificio nova gran via 
Av. Gran Vía, 16-20, 2ª planta | 08902 L'Hospitalet de Llobregat (Barcelona)

T 902 999 343 | F 902 999 341 
www.grupoitnet.com 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux