Hi everyone. I'm running PHProxy on my Windows 2003 server with IIS6, PHP5 and when my proxy is in use by just 10+ people my CPU jumps to 100%! Has anyone else had CPU proxy problems? Is this a PHProxy issue? Or maybe the way my web server is set up? Advice needed! It's slowing my entire server and lossing money for my other sites. Ethan
Are you on a dedicated box? If so it really shouldn't be that bad! If you are on a VPS, it may be a case of over-sell hosting and they are skewing the resource usage to try and get you to upgrade. I actually know nothing about Windows servers, but that still seems odd for sure.
Actually, there isn't any matter with the Operating system till you get enough resources available in the server to feed your proxies. Perhaps, his server got low memory to expose the load and http requests of the proxies. Even more, processor speed should come in concern. Regards
No, Windows sucks for hosting. I've done benchmarks with proxies when I was starting 2 years ago. Its like 60-80% performance loss. note: exaggerating but there really is a big performance loss. thewird
I m not interested to get into an arguement with you thewird. But please look what i have written in my reply more carefully Good Luck. Regards
I can't read, I'm illiterate, I can only argue in english . Anyway, the thread started hasn't provided enough information to go by except for the Windows hosting. thewird
What cpu it is? a low end cpu will max it's capacity very soon. Even more if you don't have too much ram.
Guys, I am not asking my question to get a Windows vs. Linux hosting debate going. I am asking for help. Basically, my box is a DEDICATED Pentium 4 with 2GB RAM, 1.5TB hard drive, etc. It's hosted at a data center in Texas. It's more than fine. I don't know if it's something wrong with the PHP, or what. The site also runs about 20+ other sites (many of which are also PHP), and when I turn off my Proxy site the CPU goes back to normal. In PHProxy is there any calls that may take up large amounts of CPU, like hashing a webpage or anything like that? Ethan
wot thewird says is 100% true. @grandy the more the resources it will perform better, but read what OP says, he is in problem and want a solution, not expense.
phproxy has to iterate many times using preg_match and preg_replace to proxify it. that's cpu consuming.
Actually it doesn't really make sense. Surely ten proxy users can't bring a p4 to its knees? Have you checked whether you have hotlink prevention enabled in phproxy? Also try to set a reasonable max file size. Say 512 KB.