Re: Query on StartServers and ListenBackLog

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

 



On 4/28/07, Arnab Ganguly <aganguly01@xxxxxxxxx> wrote:
Hi All,
I have some queries on the StartServers param.As it says "The StartServers
directive sets the number of child server processes created on startup. As
the number of processes is dynamically controlled depending on the load,
there is usually little reason to adjust this parameter" from the Apache
page.I wanted to know suppose I make the StartServers as 1.During the
startup time only one active child process gets created.But after running it
for a day or two a new daemon process gets launched apart from the other
existing one.It would be nice if you can tell me as what point due to the
load does Apache spawns another daemon?The value of ServerLimit I kept is
one but still the behavior is same.

StartServers really only has any effect within the first few seconds
of the server's life. After that, the number of processes is
determined by the number of client requests along with
MinSpareServers/MaxSpareServers/MaxClients/ServerLimit. It is,
however, very normal to have one or two extra processes above
MaxClients/ServerLimit. This would be the parent/control process and
possible a CGI daemon process depending on the CGI module used.


One more question I have is about the ListenBackLog.Is the request is always
read from this queue or the queue comes into the picture only when the Idle
thread count is zero?Suppose the ListenBackLog is full what would happen to
the request received by Apache?

A normal server will immediately pick up any connectoin off the listen
queue, so it will typically be empty. If it becomes full (because
MaxClients/ServerLimit is not high enough), then apache will never see
the requests. They will be rejected by the OS at the TCP/IP level
(connection refused, I believe).


If Idle thread count is zero do still this ListenBackLog gets filled for the
requests are coming and the request are read from this queue only.Looking
forward for response.

Something like that, yes.

Joshua.

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