Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.

Open Socket File Descriptors

no avatar
User

jriches

Posts

3

Joined

Wed Jun 02, 2004 1:44 am

Open Socket File Descriptors

by jriches » Wed Jun 02, 2004 2:12 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Open Socket File Descriptors

by support2 » Wed Jun 02, 2004 7:17 am

no avatar
User

jriches

Posts

3

Joined

Wed Jun 02, 2004 1:44 am

by jriches » Wed Jun 02, 2004 10:51 pm

We have been using lsof and found that the open fd's are coming from the thread that is performing the ftp poll. The fd counts have climbed upto 600-700 with the process upper limit set to 1024. The strange thing is that the fd's do get cleaned up on a periodic basis (every several minutes)which we think may be the result of JVM garbage collection. However, depending on system load we do occasionally hit the 1024 limit at which point we start to throw exceptions. Shown below are a few lines from lsof:



The socket close method is closing our connections to the FTP hosts as expected but for some reason the fd's hang around for several minutes.


Thanks,
JR.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Wed Jun 02, 2004 11:10 pm

no avatar
User

jriches

Posts

3

Joined

Wed Jun 02, 2004 1:44 am

by jriches » Wed Jun 02, 2004 11:36 pm


Who is online

Users browsing this forum: No registered users and 118 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign