Re: Understanding the APACHE 1.3 process model

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

 



During a time when system resources are limited such as a DoS or even just an app run amok I've found SNMP to be a pretty good way to get information on the system. With net-snmp you can walk the tree to find connection information. Net-snmp will likely have issues if you try to walk the whole tree and you need to use a proper timeout but it's much less resource intensive because it avoids forking, which anyone who's logged in to a system without memory can tell you takes *forever*.

--
Michael Conlen

On Sep 28, 2007, at 2:43 AM, Christian Folini wrote:

On Fri, Sep 28, 2007 at 01:13:44PM +1000, Robinson Craig wrote:
Therefore, this makes me think that I can't actually use netstat to
'measure' the 'number of concurrently connected clients'? Is this a fair
assumption?

Hey Craig,

You can still do that, but limit yourself to the Established
connections. It gives you the advantage to be independent of
apache in case of a DoS when mod_status is unavailable.

For all other purposes, the latter is the better option,
as it gives you more information. See Michael's message.

cheer,

Christian



Cheers, Craig

-----Original Message-----
From: Sander Temme [mailto:sctemme@xxxxxxxxxx]
Sent: Friday, 28 September 2007 1:01 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Understanding the APACHE 1.3 process model


On Sep 27, 2007, at 7:51 PM, Michael Conlen wrote:

you likely have 23 established connections using server processes and
an additional number of server processes available to handle new
connections. Apache keeps some number of processes available so that
it doesn't have to fork the process at the time the request is made,
but instead has the process ready to go. There are httpd.conf
parameters to specify the minimum and maximum of these to keep
available.

See MinSpareServers, MaxSpareServers.

The TIME_WAIT, FIN_WAIT_1, FIN_WAIT_2 and LAST_ACK sockets should not be
attached to httpd children.

httpd doesn't deal with the TCP layer, it deals with socket file
descriptors.

S.

--
Sander Temme
sctemme@xxxxxxxxxx
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




********************************************************************* ***
The information in this email together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this email message is prohibited, unless
as a necessary part of Departmental business.
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.
********************************************************************* ***


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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



---------------------------------------------------------------------
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