Current time: 11-16-2024, 11:18 AM Hello There, Guest! (LoginRegister)


Post Reply 
proftpd slow authentication
Author Message
sidha Offline
Junior Member
*

Posts: 13
Joined: Aug 2009
Reputation: 0
Post: #1
proftpd slow authentication
System: Debian Lenny with current proftpd (1.3.1-17lenny4).
Problem: FTP connection is ok. Connection (probably the authentication) causes 100% cpu load for about 10-30 seconds if the server is idle. If the server is busy, then the process failed with 100%cpu for several minutes.
If the server is idle, the connection estabilished in about 10-30 seconds (!) but everything else is fine. What causes this high, constant cpu load at ftp authentication/connection?
05-30-2010 03:59 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: proftpd slow authentication
try to start proftpd with debugging output (see other posts about proftpd problems) then you might see where the problem is...

/J
05-31-2010 07:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sidha Offline
Junior Member
*

Posts: 13
Joined: Aug 2009
Reputation: 0
Post: #3
RE: proftpd slow authentication
Thank you for reply, but this not solved anything. If i start proftpd with debugging options, the only thing i can see is: the mod_auth take about 80-90% of the connection time (20-30secs).
Anyway, i'm just solved this problem myself. The solution was: removing the last line from /etc/proftpd/proftpd.conf file (Include /etc/proftpd/ispcp/*)
I'm not sure this modification can cause any problem or not, but my ftp accounts are working fine (and working fast) which i'm testing.
SOLVED.
(This post was last modified: 06-02-2010 11:17 PM by sidha.)
06-02-2010 06:30 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: proftpd slow authentication
ah.

the include loads rules so that the customers cannot delete some important folders in their home (htdocs, backups etc)...

/J
06-03-2010 07:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sidha Offline
Junior Member
*

Posts: 13
Joined: Aug 2009
Reputation: 0
Post: #5
RE: proftpd slow authentication
I see... but then this simple rules causes 100%cpu load for about half minute via the profptd mod_auth module during ftp logins. Why?

---------------
Summary:
With this rules loaded: every ftp login take 20-30secs and proftpd mod_auth take constant 100% cpu usage
Without rules: every ftp login take cca. 1-2 secs, and about 0% cpu: proftpd sometimes even not appear on top, or with max. 1-2% cpu. Nice :-)
(This post was last modified: 06-04-2010 08:49 PM by sidha.)
06-04-2010 08:35 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: proftpd slow authentication
We know that behavior, but there is no better workaround these days.

Greez BeNe
06-04-2010 10:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
SniperSister Offline
Junior Member
*

Posts: 22
Joined: Feb 2007
Reputation: 0
Post: #7
RE: proftpd slow authentication
Hey guys,

any news regarding this topic? I just had the same issue on a client server and proftp was knocked out for more than 3 minutes, so the login timed out.

Best regards
David
07-03-2010 01:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Minganus Offline
Banned

Posts: 38
Joined: Feb 2011
Post: #8
RE: proftpd slow authentication
Here some additional solutions
http://isp-control.net/forum/thread-9064...94835.html
02-09-2011 04:38 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)