High CPU Load by php-cgi

hello ,
i configured nginx with php-cgi but a problem is now happening and my
CPU Load is high but there is not high requests…
rather when visitors start leeching(rapidleech) php-cgi starts making
highly loads…
look this screenshot :

i dont know why php-cgi makes highly CPU Load average …

have you any problem like this ??
please help me !!

Posted at Nginx Forum:

On 8/6/10 6:50 PM, Sina wrote:

have you any problem like this ??
please help me !!

The problem is almost certainly RapidLeech and not your set up. So long
as you are transferring/zipping files that will consume large amounts of
CPU. Downloading large files can take significant amounts of time.

We don’t allow RapidLeech to be installed on our servers for this
reason, and for the potential legal issues associated with illegal file
transfers.


Jim O.

it means that rapidleech is the problem??? but i dont think but i have
one site in a dedicated server and its for leeching :

Xeon 3060 (4.8GHz, 2 cores)
1066MHz FSB 4MB L2cache
2GB Memory

and limit of transfer is fixed on 200MB but php-cgi still consume %90
of CPU …

Posted at Nginx Forum:

On 07.08.2010 09:24, Sina wrote:

it means that rapidleech is the problem??? but i dont think but i have
one site in a dedicated server and its for leeching :

Xeon 3060 (4.8GHz, 2 cores)
> 1066MHz FSB 4MB L2cache
> 2GB Memory

and limit of transfer is fixed on 200MB but php-cgi still consume %90
of CPU …

Well when php compress something, it’s normal that it use all available
power for one process.

Check if you have there xcache or pecl-apc. Also, you can play with
cpulimit wrapper to php (depends how you running php-cgi) to limit php
cpu usage.

– Piotr.

i fixed transfer limit to 100MB and actually problem has solved …
now CPU Usage is : %2 and Free memory : 1GB
exactly this problem was started when trasfers files limited to 200MB :frowning:
and Not compatible with 100Mbit Connections…

Thank you .

Posted at Nginx Forum: