Web Hosting Talk







View Full Version : Server down too much (30-40%)


kgp43
10-22-2004, 12:22 PM
My server load has been 10 most of the day, it is back at 0,30 again. Apache using about 7-10% CPU - I have about 600 processes running (limit at 500 in php.ini). My pages are unreachable (or very very slow to load9.

Is my problems caused by all the processed/connections?

I run a few image hosts with alot of hits - it is those who is generating all the processes/connections.

Any suggestions what to do?

unreal2345
10-22-2004, 12:30 PM
If you're running image hosts, why are you running php? Also, maybe you should be looking in httpd.conf rather than php.ini.

[edit]
For image hosting, you might want to check out thttpd (http://www.acme.com/software/thttpd/)

Zadmin
10-22-2004, 12:31 PM
check HERE (http://phplens.com/phpeverywhere/tuning-apache-php) to tweak ur apache/php

kgp43
10-22-2004, 01:10 PM
[hmm, I thouht I already replied in this thread... weird]

unreal2345; I use php to alot of stuff: redir, stats, security,limits etc.

Nazmy: I added a few things from that thread, however I find it weird to add 50 changes when I have no idea what they do and if they are going to interrupt my pages (that arent working anyway :P)

unreal2345
10-22-2004, 01:24 PM
Originally posted by kgp43
I use php to alot of stuff: redir, stats, security,limits etc.

In that case, you might want to add a thttpd for static content along side with your regular apache server for dynamic content...

kgp43
10-22-2004, 03:50 PM
I will look into that.

hiryuu
10-22-2004, 09:20 PM
Also consider squid (caching proxy)+apache. Squid has some nice redirect and acl features, and dynamic requests automatically fall through to apache.

kgp43
10-23-2004, 02:09 AM
I use modrewrite to make dynamic requests seems static.

andreyka
10-23-2004, 03:26 AM
Need find process which eat cpu and set hard limits to it.