This is very helpful, I found currently almost all of the open files are sockets. But it don't have that much traffic. So it seems it's leaking socket file descriptors. 

ÔÚ 2012-1-8£¬ÏÂÎç10:50£¬ Felipe Almeida Lessa дµÀ£º

On Sun, Jan 8, 2012 at 12:27 PM, Gregory Collins
<greg@gregorycollins.net> wrote:
A "too many open files" error is usually due to running out of file
descriptors for network sockets. On my Linux machine the per-process limit
for file descriptors defaults to 1024, and on my Mac the default is 256. You
can see your current limit by running "ulimit -a" from the terminal.

If you're on Linux, then you may

 $ ls -lah /proc/PID/fd

to see where these open files are pointing to.

HTH,

--
Felipe.