You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by ar...@Safe-mail.net on 2009/10/08 11:39:49 UTC

FtpServer hitting its limit?

Hi.

I have an issue with apache FtpServer.
It's set to use passive mode, and it looks like all of the ports are being used, which stops any new connections from being connected and the whole ftp server just hangs. If you try to connect it just reaches time out.

Here what I get after this happens, in the log:

[ INFO] 2009-10-08 09:04:44,347 [] [65.75.250.58] CREATED
[ INFO] 2009-10-08 09:04:44,753 [] [64.90.174.226] CREATED
[ INFO] 2009-10-08 09:04:45,284 [] [72.89.239.125] CREATED
[ INFO] 2009-10-08 09:04:45,909 [] [195.14.162.97] CREATED
[ INFO] 2009-10-08 09:04:47,018 [] [85.225.141.116] CREATED
[ INFO] 2009-10-08 09:04:47,909 [] [38.99.250.2] CREATED
[ INFO] 2009-10-08 09:04:48,268 [] [114.111.139.57] CREATED
[ INFO] 2009-10-08 09:04:48,972 [] [80.34.69.143] CREATED
[ INFO] 2009-10-08 09:04:49,456 [] [111.67.83.18] CREATED
[ INFO] 2009-10-08 09:04:49,472 [] [202.150.209.90] CREATED
[ INFO] 2009-10-08 09:04:49,472 [] [118.243.143.178] CREATED
[ INFO] 2009-10-08 09:04:49,550 [] [81.247.77.182] CREATED
[ INFO] 2009-10-08 09:04:49,768 [] [220.236.247.154] CREATED
[ INFO] 2009-10-08 09:04:50,347 [] [79.172.211.17] CREATED
[ INFO] 2009-10-08 09:04:50,550 [] [174.133.32.49] CREATED
[ INFO] 2009-10-08 09:04:50,565 [] [81.247.77.182] CREATED
[ INFO] 2009-10-08 09:04:51,612 [] [75.127.87.129] CREATED

And it's just keeps going on like that.

I have about 1000 connections every 5 minutes which creates about 35gb of daily incoming traffic, so I think I'm hitting the limit of the apache FtpServer. How can I avoid it? Is there a workaround? 

Also, since only one connection is allowed per port, is there a way to virtually increase the number of ports to allow more simultaneous connections?

Thanks.

Re: FtpServer hitting its limit?

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Thu, Oct 8, 2009 at 11:39 AM,  <ar...@safe-mail.net> wrote:
> I have about 1000 connections every 5 minutes which creates about 35gb of daily incoming traffic, so I think I'm hitting the limit of the apache FtpServer. How can I avoid it? Is there a workaround?

Interesting workload. However, I do not know of any limitations that
should cause this.

> Also, since only one connection is allowed per port, is there a way to virtually increase the number of ports to allow more simultaneous connections?

Have you restricted the ports FtpServer is allowed to use for passive
connections? Also, could it be that you use up the file handles
(sockets) for your OS?

/niklas

Re: FtpServer hitting its limit?

Posted by David Latorre <dv...@gmail.com>.
I see Niklas and Sai are already helping you out but just in case ...
Which version of Apache Ftpserver are you using? We had some issues
with passive data transfers ( related to SSL connections). Are you
using plain or SSL connections?


As Niklas said, netstat -an report would be of much help. You can of
course "mask the ip-addresses" if   you want to keep private
information private :-) Still, if you saw something like thousands of
connections in fin_wait2 status  - it is clear that there's a problem
somewhere ( In this case, I think you just need to upgrade to latest
version).
Depending on your FtpServer version, upgrading the Sun jvm to 1.6.12+
version  couldalso  be a solution for you.





2009/10/8  <ar...@safe-mail.net>:
> Hi.
>
> I have an issue with apache FtpServer.
> It's set to use passive mode, and it looks like all of the ports are being used, which stops any new connections from being connected and the whole ftp server just hangs. If you try to connect it just reaches time out.
>
> Here what I get after this happens, in the log:
>
> [ INFO] 2009-10-08 09:04:44,347 [] [65.75.250.58] CREATED
> [ INFO] 2009-10-08 09:04:44,753 [] [64.90.174.226] CREATED
> [ INFO] 2009-10-08 09:04:45,284 [] [72.89.239.125] CREATED
> [ INFO] 2009-10-08 09:04:45,909 [] [195.14.162.97] CREATED
> [ INFO] 2009-10-08 09:04:47,018 [] [85.225.141.116] CREATED
> [ INFO] 2009-10-08 09:04:47,909 [] [38.99.250.2] CREATED
> [ INFO] 2009-10-08 09:04:48,268 [] [114.111.139.57] CREATED
> [ INFO] 2009-10-08 09:04:48,972 [] [80.34.69.143] CREATED
> [ INFO] 2009-10-08 09:04:49,456 [] [111.67.83.18] CREATED
> [ INFO] 2009-10-08 09:04:49,472 [] [202.150.209.90] CREATED
> [ INFO] 2009-10-08 09:04:49,472 [] [118.243.143.178] CREATED
> [ INFO] 2009-10-08 09:04:49,550 [] [81.247.77.182] CREATED
> [ INFO] 2009-10-08 09:04:49,768 [] [220.236.247.154] CREATED
> [ INFO] 2009-10-08 09:04:50,347 [] [79.172.211.17] CREATED
> [ INFO] 2009-10-08 09:04:50,550 [] [174.133.32.49] CREATED
> [ INFO] 2009-10-08 09:04:50,565 [] [81.247.77.182] CREATED
> [ INFO] 2009-10-08 09:04:51,612 [] [75.127.87.129] CREATED
>
> And it's just keeps going on like that.
>
> I have about 1000 connections every 5 minutes which creates about 35gb of daily incoming traffic, so I think I'm hitting the limit of the apache FtpServer. How can I avoid it? Is there a workaround?
>
> Also, since only one connection is allowed per port, is there a way to virtually increase the number of ports to allow more simultaneous connections?
>
> Thanks.
>