[Haskell-cafe] "too many open files" using snap

Eric Wong wsysdu at gmail.com
Sun Jan 8 16:00:40 CET 2012


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 at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120108/93e9399f/attachment.htm>


More information about the Haskell-Cafe mailing list