really slow response time even with standard html file

really slow response time even with standard html file

am 02.09.2009 21:19:43 von Peter Folk

--0015175cac9c35b2c604729d26be
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I am running a two machine system with load balance on debian 4.0 and apache
2.0 .

I guess I am not a real expert in apache so , my ideas are limited .

both machines have 4 cores and 4 GB ram (php apps) .

What makes it more complex that we have many virtual hosts the apache config
file is about 80 KB (almost one single file with all hosts and aliases) .

What I see that when apache starts the memory starts to load up to 2,8 G see
config below . and then processor goes back and forth .

But even a single html file of 2Kb takes up to *5 seconds ! !* Firebug shows
that connection time is about 4 sec (this is when its waiting for a slot ?
) .

I keep seeing in the log that I need to increase maxclients but if I do so
the memory consumption goes over the limit and we start to swap .

What tools should I use to better understand the problem and trace down this
issue?

Any ideas are welcome !



cheers,
Peter

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves

# StartServers 5
StartServers 50
#StartServers 100
# MinSpareServers 5
MinSpareServers 10
# MinSpareServers 30
# MaxSpareServers 10
MaxSpareServers 90
# MaxSpareServers 30
# MaxSpareServers 100
# MaxClients 150
MaxClients 436
ServerLimit 436
#old MaxRequestsPerChild 0
MaxRequestsPerChild 0


--0015175cac9c35b2c604729d26be
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,

I am running a two machine system with load balance on debia=
n 4.0 and apache 2.0 .

I guess I am not a real expert in apache so ,=
my ideas are limited .

both machines have 4 cores and 4 GB ram=A0 (=
php apps) .


What makes it more complex that we have many virtual hosts the apache c=
onfig file is about 80 KB (almost one single file with all hosts and aliase=
s) .

What I see that when apache starts the memory starts to load u=
p to 2,8 G see config below . and then processor goes back and forth .


But even a single html file of 2Kb takes up to 5 seconds ! ! Fir=
ebug shows that connection time is about 4 sec (this is when its waiting fo=
r a slot=A0 ? ) .

I keep seeing in the log that I need to increase m=
axclients but if I do so the memory consumption goes over the limit and we =
start to swap .


What tools should I use to better understand the problem and trace down=
this issue?

Any ideas are welcome !



cheers,
Pet=
er

# prefork MPM
# StartServers: number of server processes to st=
art

# MinSpareServers: minimum number of server processes which are kept spare<=
br># MaxSpareServers: maximum number of server processes which are kept spa=
re
# MaxClients: maximum number of server processes allowed to start

# MaxRequestsPerChild: maximum number of requests a server process serves r><IfModule mpm_prefork_module>
#  =A0 StartServers  =A0=
       5
StartServers        =A0 50
#Star=
tServers   100
#  =A0 MinSpareServers       5

     MinSpareServers       10
#     MinSpare=
Servers       30
#  =A0 MaxSpareServers    =A0 1=
0
  =A0 MaxSpareServers    =A0 90
#  =A0 MaxSpareServ=
ers    =A0 30
#  =A0 MaxSpareServers    =A0 100
#=
  =A0 MaxClients        =A0 150

  =A0 MaxClients        =A0 436
  =A0 ServerLimi=
t         436
#old  =A0 MaxRequestsPerChild   0<=
br>  =A0 MaxRequestsPerChild   0
</IfModule>




--0015175cac9c35b2c604729d26be--