Hi All,
What I saw was the ServerLimit value = 2 when I kept I saw one root and two
daemon process.And among the two daemon it is the only one daemon handles
all my request.So my requirement is met.But when I replace the value of
ServerLimit = 1 the above behavior is also same.

The other config was followed was same as below

StartServers 1
MaxClients 25
MinSpareThreads 25
MaxSpareThreads  25
ThreadsPerChild  25
MaxRequestsPerChild 0.

The minspare threads I will reduce it to 5 or to some lower value.But I
still get the error as "*MaxClients setting, consider raising the MaxClients
setting* ".I can't increase the value of MaxClients ad the number of active
child process has to be one also the Threadsperchild has to be 25 as this is
the max value in Unix.

So is there any other way I can subside the error also my requirement is
met.I am new to apache and sorry for some basic qustions.
Thanks in advance.
-A

On 3/30/07, Joshua Slive <[EMAIL PROTECTED]> wrote:

On 3/30/07, Arnab Ganguly <[EMAIL PROTECTED]> wrote:
> Hi All,
> Apache version used here is 2.2. I have developed a module which acts a
> plugin to the apache.My requirement is that all the request is going to
be
> handled by single process and multi-threaded.I am using MPM=worker.The
> module is working fine.But in the error log I get the following error as
> (server reached =MaxClients setting, consider raising the MaxClients
> setting)
>
> In the httpd.conf file We have MaxClients = 25 and ThreadsPerChild =
25.We
> won't be able to increase the MaxClients value in this case. As
according to
> apache (The maximum number of active child processes is determined by
the
> MaxClients  directive divided by the  ThreadsPerChild directive).In our
case
> we want a single active child process to handle the requests received by
the
> repeater.Also the ThreadsPerChild max value is 25 in Unix.So I am not be
> able to modify the params.
> Below I have given my MPM config also
> <IfModule worker.c>
> ServerLimit  2
> StartServers 1
> MaxClients 25
> MinSpareThreads 25
> MaxSpareThreads  25
> ThreadsPerChild  25
> MaxRequestsPerChild 0
> </IfModule>
>
> So is there any other way I can increase MaxClients value or I should
not
> get the error.Any help would be appreciated.Looking forward for
response.
> Thanks in advance.

Your config is a little confused.

Why do you have ServerLimit 2 if you only want one process?

You certainly don't want MinSpareThreads 25, since apache is always
going to want to keep 25 IDLE children, which obviously isn't possible
under your setup. MinSpareThreads should be set very low.

I also don't understand why you say you can't change ThreadsPerChild.

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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to