[Proftpd-user] Proftpd 100% usage of CPU from a connection

This is a discussion on [Proftpd-user] Proftpd 100% usage of CPU from a connection within the proftpd forums, part of the Tools category; Hi! We have a little problem with Proftpd... some machines have some customer connection proccesses using 100% of CPU usage (and not using proftpd SSL)... I have set RLimitCPU session ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > proftpd

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 03:50 AM
Default [Proftpd-user] Proftpd 100% usage of CPU from a connection

Hi!

We have a little problem with Proftpd... some machines have some
customer connection proccesses using 100% of CPU usage (and not using
proftpd SSL)... I have set RLimitCPU session 15 16 and this nicely kills
those connections but it kills too other legitimate connections wich are
eating 20 or 30% of cpu ugage (Although I don't understand it really,
because a normal upload of a large file eating 20 % of CPU can be
withouth being killed 2 minutes, shouldn't it be killed in 16 seconds
too??)... I implemented RlimitCPU for killing clients eating 100% of
CPU but I didn't want to kill clients eating 50 or 30 % of cpu usage...
could be this achieved by RLimitCPU? Or should I do a bash script that
does something like a kill -9 of a proccess using 100% of CPU more than
X seconds? This is a problem for us because it increases the load
average of machines considerabily... Any help please??

Thanks a lot!
Bye!!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.p...r_id=100&url=/
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

Reply With Quote
  #2  
Old 08-25-2008, 04:08 AM
Default Re: [Proftpd-user] Proftpd 100% usage of CPU from a connection

On 25.08.08 09:50, Egoitz Aurrekoetxea wrote:
> We have a little problem with Proftpd... some machines have some
> customer connection proccesses using 100% of CPU usage (and not using
> proftpd SSL)... I have set RLimitCPU session 15 16 and this nicely kills
> those connections but it kills too other legitimate connections wich are
> eating 20 or 30% of cpu ugage (Although I don't understand it really,
> because a normal upload of a large file eating 20 % of CPU can be
> withouth being killed 2 minutes, shouldn't it be killed in 16 seconds
> too??)... I implemented RlimitCPU for killing clients eating 100% of
> CPU but I didn't want to kill clients eating 50 or 30 % of cpu usage...
> could be this achieved by RLimitCPU? Or should I do a bash script that
> does something like a kill -9 of a proccess using 100% of CPU more than
> X seconds? This is a problem for us because it increases the load
> average of machines considerabily... Any help please??


I've had similar problem and solved it similar way. I found out that there's
problem when customers were creating folder whose names contained high
non-ascii characters and later trying to list contents of the folder.

I haven't look at that more deeply but maybe this hint will help you a bit.

I'm using mod_clamav and I've had similar problem when customers uploaded a
file whils connection to clamd broke - there was some problem when proftpd
tried scanning the file...

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.p...r_id=100&url=/
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:39 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger