cpsrvdup (green) named (9.2.4)up (green) Server Load4.95 (1 cpu) (red) Memory Used50.8 % (green) Swap Used0.00 %(green) Disk hda3 (/) DMA+7 % (green) Disk hda1 (/boot) DMA+12 % (green) My server has a 2.8GHz CPU, 1 gig of ram, 80gb harddrive. I opened up 3 proxy sites on this dedicated server last night, they've had almost 5,000 unique hits in the past 2 days between them all and the server has gone crazy. 2 sites are using CGIProxy and one is using PHProxy 0.4, any idea why the CPU usage is so high?
CGIProxy with that many unique will crushed your server, nothing unusual. You need dual xeon dual core with lots of ram to handle it and still have some room to grow or your user will leave because of slow response.
it wasn't in your post, so i'll say it now, install MOD PERL, it'll drop the resource usage of cgiproxy alot. also look on their website, they have suggestions to speed things up. Also check the traffic that is coming thought your proxy, if you have 1 person requesting 100,000 files, firewall them off from the server (yes this isn't the best solution, but one person accounting for full % points of usage is going to drive up costs)
Check your real bandwith usage at the customer portal also. You should block file sharing/upload sites.
Nobody has used more than 50mb of bandwidth according to awstats. Still been super high usage throughout today. I haven't tweaked any conf files or anything, this is the first server I've owned, I've just been on crappy shared plans before. I'll install MOD PERL now thanks.
Dont check the bandwith usage at awstats, any stats in cPanel, cPanel or whm. They will not count leechers. You have to check it at a place that shows all in and out traffic. If you have a customer page at the company who you rent the server from there should be something there. If you dont find it there ask your host, this is important, the bandwith usage can be many, many times higher than the cPanel shows you. You can get an ugly surprise in paying over usage. I did. ??? When I load this page here I get a box telling me to log in to whm at 216.32.80.74 ??? walesalex, you have pasted some code in your message!!!
He put images in his post from his stats package, only you have to be logged into his stats package to see them. We've probably all made similar newbie errors in the past. No harm done, freaky though when you don't know what it is.
cgi proxy is a beast, and really needs to be optimized to not kill your server. with a little tweaking you should be able to keep it under control. a good test is to load a couple instances myspace in your browser at once, and watch your server load.
Ah right, I just copied it straight from my WHM so yeah I suppose with the images hosted there you'd need to log in, sorry all, why did nobody say sooner? I'm using the beta15 I think Spacey, I'll have a look at changing them to 2.01, thanks. Login, I'll be emailing the people my server is with now and ask them, I can't see anything in my customer control panel with them, thanks. Rednimer, I also will be trying that now, I suspect it's something to do with my not optimizing at all.
Yeah I've found the RTG graphs now on the layeredtech area and they seem a lot higher than cPanel... lol. http://img138.imageshack.us/img138/1204/graphjb8.png http://img412.imageshack.us/img412/6243/graphil4.png That's bad, right?
All optimizations aside, its Server Load, not CPU Usage, that seems to be high. And, actually its not that high at all in my opinion. Server load states the value of Load average. CPU usage can be lower than 50% for 10+ load average, and it can be 99% for a load average as low as 1. It depends on the type of application thats running. For a 2.8GHz cpu with proxy sites, server load (load average) of around 10 is common. It can go over 50 without any problems on dual xeons at peak hours. It is roughly a measure of the number of simultaneos processes running at that time. - Zulu
mod_perl isn't compatible with php ( when php is in apache module mode at least, not sure about the cgi version ), also, the description of the load average above isn't great, if your load average is at 2.0 then your server needs to be 200% faster to keep up with it's average workload at the time, load averages are calculated every minute and so are pretty up to date, you should take notice it wouldnt turn red if there wasn't something wrong.
I would recommend you to upgrade RAM on your server . Make it atleast 4 GB to distribute multiple instances of proxy at a time .