Problem accessing web sites on server

Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
Hi,

I'm having a problem with a x86_64 dual opteron server with 300+ accounts.

During peek hours - when the server load rises to above 1.x levels for a few moments (normal server load is around 0.30) - some clients report problems loading their web pages from web sites on the server. The problems can last from a few seconds to a minute and seems to hang. Afterwards there are no problems any more.

Any ideas what this is and off course how to solve this?

Thanks,
Bdzzld.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
Check the httpd error_log for errors when this happens. You might be hitting MaxClients. If you have a lot of mysql driven accounts, you may also be hitting /etc/my.cnf max_connections

If it's a general slow-down, check swapfile usage in top incase you're memory-thrashing.
 

Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
Hi,

Thanks for your answer.

I've checked the httpd error_log @ /etc/httpd/logs but could not find anything out of the ordinary. max_connections for /etc/my.cnf are already set to : 500. Also swapfile usage is no more than 1% the entire time.

I've set "ulimit -n" (open files) from 1024 to 4096 and hope that will make some diff...

Any other suggestions are always welcome...
 

Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
MMarko said:
Did you check mysql as Chirpy said before?
max_connections for /etc/my.cnf are already set to : 500. Should be sufficient I guess...

MMarko said:
Did you optimize mysql and php?
Don't want to sound stupid, but how does one do such a thing?
 

MMarko

Well-Known Member
Apr 18, 2005
316
0
166
Bdzzld said:
max_connections for /etc/my.cnf are already set to : 500. Should be sufficient I guess...
Check memory settings for mysql cache too!

Bdzzld said:
Don't want to sound stupid, but how does one do such a thing?
Well you go to their site and search for "performance optimization" in documentation :D

PHP can be tweaked using some precompilers and caching software like zend optimizer etc...