[Bug 1406605] [NEW] vsftp processes crashes Ubuntu by using all of the available memory

Onur Boyaci onurboyaci71 at gmail.com
Tue Dec 30 17:58:29 UTC 2014


Public bug reported:

We've started using vsftpd on an Amazon EC2 instance like 2 months ago.
Server is getting very high concurrent ftp traffic.
But when the concurrency gets higher, vsftpd (standalone version) processes start to eat up more and more memory (totally all vsftpd processes together eat up all of the real avialable memory (30GB) of the instance and causes it to go out of service.
I may give you more details, but the most important vsftpd.conf settings are as follows:

vsftpd seems to limiting the # of clients (given by max_clients=1000) since I see  "Connection refused: too many sessions." errors loged in the ftp log file.
There doesn't seem to be any other strange errors apart from lots of 
[15684.883021] type=1326 audit(1419948989.671:348978): auid=4294967295 uid=65534 gid=65534 ses=4294967295 pid=29979 comm="vsftpd" 
sig=31 syscall=37 compat=0 ip=0x7f531bf67757 code=0x0 
erros in the kernel logs.

/etc/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
pasv_enable=YES
port_enable=YES
pasv_min_port=10000
pasv_max_port=20000
pasv_address=Publix IP of the Amazon instance
allow_writeable_chroot=YES
userlist_enable=YES
userlist_deny=NO
max_clients=1000
max_per_ip=3
idle_session_timeout=30
data_connection_timeout=120
seccomp_sandbox=NO

vsftpd version : 3.0.2-1ubuntu2.14.04.1
OS: Ubuntu 14.04.1 LTS, 3.13.0-43-generic #72-Ubuntu, x86_64

I'm quite sure that vsftpd processes use all of the real memory by inspecting
        the output of  ps -C vsftpd -o user,rss,size,pid,cmd.
i.e. total rss of the vsftpd processes add upto 30GB when the system is about to run OOM.

** Affects: vsftpd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vsftpd in Ubuntu.
https://bugs.launchpad.net/bugs/1406605

Title:
  vsftp processes crashes Ubuntu by using all of the available memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/1406605/+subscriptions



More information about the Ubuntu-server-bugs mailing list