Hi,

on linux we noticed that a number of file descriptors associated with
sockets are leaked when using FTP/S TLS/Explicit as we serve connect and
disconnects (and -- possibly - LIST commands returning empty lists)
eventually leading to a "Too Many Files Opened" condition as we hit th 1024
file descriptor limit in /proc.

For each connect/disconnect/list cycle we observe a leak of about 10 socket
file descriptors.

JMAP does not show any unreachable java references, so the problem may
originate deeper, closer to native JVM layers or as a consequence of some
java.nio verb misuse (btw we validated this both on J2SE 5 and J2SE 6).

We detect this by issuing "jmap -histo:live <procid> | grep -i socket" (the
":live"  directive selects only live references that would not be garbage
collected).

We are "locked" on revision version 681183 of FTP Server and cannot easily
upgrade right now, moreover we plugged a few custom components (a user
manager, a virtual file system manager and a jce provider) which may or may
not be part of the problem.

Has anyone seen this before?
Can you provide some troubleshooting hints for this kind of problem?

Any help is highly appreciated.
Cheers,
F.

Reply via email to