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 Dan <da...@tipjarawards.com> on 2010/05/10 17:26:44 UTC

Netstat and LAST_ACK hanging

Our server is running but over time it hanged and the netstat gave this kind
of output (endless connections waiting for LAST_ACK). Are we missing
something to clean up these connections if the client leaves them hanging?
Is there a timout we can use?

Thanks,

Dan

Here is the output from netstat -taupe | sort

...
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16093
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16225
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16328
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16380
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16513
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16778
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16906
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16924
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16981
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17091
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17097
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17218
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17273
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17742
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17821
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17825
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17872
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18188
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18393
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18417
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18465
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18517
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18894
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18958
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18978
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19110
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19128
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19237
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19460
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19654
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19789
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19905
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19975
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20023
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20091
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20484
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20498
LAST_ACK    root       0          -                   
tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20503
LAST_ACK    root       0          -                   
...


RE: Netstat and LAST_ACK hanging

Posted by Dan <da...@tipjarawards.com>.
Linux, 32-bit Redhat core 8, TLS/SSL yes (but not necessarily used in those
connections I don't think), running inside tomcat 5.5.x

Haven't noticed the LAST_ACK building up again but will be keeping an eye

Thanks,

Dan

-----Original Message-----
From: David Latorre [mailto:dvlato@gmail.com] 
Sent: May-10-10 12:16 PM
To: ftpserver-users
Subject: Re: Netstat and LAST_ACK hanging

Hello Dan,

Can you describe your environment? Version, configuration, SSL or not...
We had some problems with hanging connections but those were solved before
1.0.4 (probably they are solved in all the 1.0.x distributions).



2010/5/10 Dan <da...@tipjarawards.com>:
> Our server is running but over time it hanged and the netstat gave 
> this kind of output (endless connections waiting for LAST_ACK). Are we 
> missing something to clean up these connections if the client leaves them
hanging?
> Is there a timout we can use?
>
> Thanks,
>
> Dan
>
> Here is the output from netstat -taupe | sort
>
> ...
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp 
> ::ffff:206.162.148.12:16093 LAST_ACK    root       0          - tcp      
 
> 1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16225 
> LAST_ACK    root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16328 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16380 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16513 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16778 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16906 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16924 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16981 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17091 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17097 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17218 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17273 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17742 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17821 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17825 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17872 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18188 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18393 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18417 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18465 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18517 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18894 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18958 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18978 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19110 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19128 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19237 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19460 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19654 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19789 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19905 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19975 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20023 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20091 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20484 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20498 LAST_ACK    
> root       0          - tcp        1      1 
> ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20503 LAST_ACK    
> root       0          - ...
>
>


Re: Netstat and LAST_ACK hanging

Posted by David Latorre <dv...@gmail.com>.
Hello Dan,

Can you describe your environment? Version, configuration, SSL or not...
We had some problems with hanging connections but those were solved
before 1.0.4 (probably they are solved in all the 1.0.x
distributions).



2010/5/10 Dan <da...@tipjarawards.com>:
> Our server is running but over time it hanged and the netstat gave this kind
> of output (endless connections waiting for LAST_ACK). Are we missing
> something to clean up these connections if the client leaves them hanging?
> Is there a timout we can use?
>
> Thanks,
>
> Dan
>
> Here is the output from netstat -taupe | sort
>
> ...
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16093
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16225
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16328
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16380
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16513
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16778
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16906
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16924
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:16981
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17091
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17097
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17218
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17273
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17742
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17821
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17825
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:17872
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18188
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18393
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18417
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18465
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18517
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18894
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18958
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:18978
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19110
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19128
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19237
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19460
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19654
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19789
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19905
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:19975
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20023
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20091
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20484
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20498
> LAST_ACK    root       0          -
> tcp        1      1 ip-10-194-154-81.ec2.in:ftp ::ffff:206.162.148.12:20503
> LAST_ACK    root       0          -
> ...
>
>