Master:
# 1    My web site is very slow, and nearly down now                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 234
Wealth 54
Posts 218
Login 21:59:32
I have recognized, the program java and syncserver consume most of the resource, but i think this could not be the only reason for the slow down problem. Recently, the web site has been performing well, the problem just happened today. Could you pls help us to figure it out?

Thanks heaps
Hits: 159, Date: 2009-07-09 09:46:33
[Agree] ( 12 ) [Against] ( 12 )

# 2    Reply: My web site is very slow, and nearly down now                  
exp
Online no
State
Grouping Member
Class class4
Score 298
Wealth 194
Posts 230
Login 10:43:01
Hello,

This is because you have hit the MaxClients directive in apache, which specifies how many simultaneous connections to apache can be open:

(~) # pstree | grep httpd
|-httpd---256*[httpd]


(~) # grep MaxC /etc/httpd/conf/httpd.conf
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
MaxClients 256

As a result, any connections over that 256 end up being queued up to wait for a process to open. In a situation where you already have an overworked java server, this can lead to a snowball effect as it consumes more and more system resources, making apache slower and slower to respond.

Largest Current httpd Memory Usage: 17.76MB
Apache MaxClients Setting: 256
Total System Memory: 3956.82MB
Maximum Apache Memory Usage: 4549.00MB (114.96%)
Maximum Recommended MaxClients Setting: 211

Unfortunately, we can't safely up the MaxClients much higher than they already are due to the fact that they are already set in such a way that they can consume more memory than the server actually has.

We can restart apache to free those connections for the short term, but I suspect that this issue will clear itself up if the java/syncserver issue is resolved.
Hits: 158, Date: 2009-07-09 09:48:48
[Agree] ( 12 ) [Against] ( 12 )

1 - 2 [ 2]

Reply: My web site is very slow, and nearly down now

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing