Re: Why do RaQ4is run mod_perl so slowly?
Philip, PM>I have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl PM>httpd processes running concurrently, then the system's load average goes PM>up over 10.0 and CPU usage is 100%. The machine has RAM to spare, so PM>swapping is not the problem. If you have top installed, try "top -o cpu -b" (list of processes sorted by CPU usage). You should see several httpd processes using up lots of CPU if your mod_perl processes are indeed at fault. Then check mod_status to see what requests those corresponding httpd processes are processing. If all of them are running a certain script, it's likely that script has an infinite loop or other resource-sucking problem in it. If ALL your httpd processes are sucking up lots of CPU, then it's like something else altogether, perhaps a bad global configuration or TransHandler. Humbly, Andrew -- Andrew Ho http://www.tellme.com/ [EMAIL PROTECTED] Engineer [EMAIL PROTECTED] Voice 650-930-9062 Tellme Networks, Inc. 1-800-555-TELLFax 650-930-9101 --
Re: Why do RaQ4is run mod_perl so slowly?
On Saturday 18 August 2001 02:36 pm, Philip Mak wrote: > I have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl > httpd processes running concurrently, then the system's load average goes > up over 10.0 and CPU usage is 100%. The machine has RAM to spare, so > swapping is not the problem. > > Is that the norm for a 450MHz server, or is there something I can do to > make it work better? That's not normal; something is wrong. Most mod_perl machines tend to have low load (>1) because they aren't doing anything CPU intensive. High loads like yours are generally associated with swapping. If you're sure there's no memory problem, then you should try to figure out where all that work is going. Maybe your app thrashes the disk and you need a faster one. Maybe you have runaway processes. Or maybe you just have that very rare thing: a CPU-intensive web app. Doing some research with Devel::DProf and Time::HiRes is probably your next step. You need to find out where all that work is going. - Perrin
Why do RaQ4is run mod_perl so slowly?
I have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl httpd processes running concurrently, then the system's load average goes up over 10.0 and CPU usage is 100%. The machine has RAM to spare, so swapping is not the problem. Is that the norm for a 450MHz server, or is there something I can do to make it work better?