Web Hosting Talk







View Full Version : Dual Xeon getting killed!


[x10]Corey
02-24-2005, 09:51 AM
Hi All,

I have a dual xeon 2.8 with 1 Gig of memory from ThePlanet. I have a large image host site on there and it is killing the server, I had loads up to 40 this morning. I know there are some things I can do to help this, I've heard thttpd mentioned before (Not sure what it is)... Can anyone give me some ideas to fix this? This site was running on a 2.6 Ghz P4 VPS before with loads staying around 3 so I know there is something wrong :(

Memory usage slowly creeps up to around 80% about an hour after restart Apache then the CPU skyrockets =\

Thanks for the help!

[x10]Corey
02-24-2005, 09:58 AM
Forgot some info!

Running cPanel 10, Apache 1.3.3, RHE 3.0.

Thanks!

FHDave
02-24-2005, 10:00 AM
type in "free" and paste the result. Most likely you are swapping to disk quite a bit already.

UH-Matt
02-24-2005, 10:04 AM
Get yourself upgraded to 2gb of ram... and dump cpanel ;)

crucialx
02-24-2005, 10:19 AM
Have you tweaked apache yet, I can already guess the easiest fix to drop the load dramatically would be to turn KeepAlive Off, and mmcache might also help.

If you have keep alive on, then memory usage will show quite high due to it keeping sockets open for quite some time. Each socket/connection opened takes up a fair bit of RAM, and sockets/connections can't be stored in swap.

Feel free to send me a PM if you need some extra help, I would be more than happy to provide a few suggestions.

[x10]Corey
02-24-2005, 10:41 AM
I sent you a PM :), Are there any drawbacks to turning keep alive off? Would adding another GIG of memory fix the problem? I'm just worried if I add another gig that it will just use that up also.

crucialx
02-24-2005, 11:09 AM
RAM may help, but its usually the tweaking that will help with these sorts of the problems. Ideal RAM in a Dual Xeon is 2GB... Try some of the tweaking, and if it does not work, then you may want to look into a RAM upgrade.

flashwebhost
02-24-2005, 04:23 PM
Yes, KeepAlive Off will help a lot. I too run imagehost, created lot of problems, too many httpd process at any time, httpd process become 1/3 after i set KeepAlive Off on httpd.conf

Also try playing with Timeout, i set 100 for my server.