[ 
https://issues.apache.org/jira/browse/FTPSERVER-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595261#action_12595261
 ] 

Dave Roberts commented on FTPSERVER-133:
----------------------------------------

TIME_WAIT is the final state of a closed socket, which is kept around by the 
OS.  The length of time it is kept in this state depends upon the OS, and 
Windows hangs on to them longer than most.  This can be a problem on system 
with a high number of connections, as you can effectively run out of sockets if 
you exhaust the dynamic port allocation space within the 4 minute period.

If you want to reduce the time a socket is in TIME_WAIT on Windows, you'll need 
to make a change to the registry.

At the following location: 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Set TCPTimedWaitDelay to 30 or 60 (seconds).  If the key doesn't exist, simply 
add it.  Of course, you'll need to reboot for this to take effect.

> Profile leaking file handles
> ----------------------------
>
>                 Key: FTPSERVER-133
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-133
>             Project: FtpServer
>          Issue Type: Task
>          Components: Core
>    Affects Versions: 1.0-M1, 1.0-M2
>            Reporter: Niklas Gustavsson
>            Assignee: Niklas Gustavsson
>             Fix For: 1.0-M3
>
>
> There are indications of FtpServer not releasing file handles appropriately. 
> This needs to be profiled and fixed. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to