[Haskell-cafe] "too many open files" using snap
Antoine Latter
aslatter at gmail.com
Mon Jan 9 05:19:13 CET 2012
2012/1/8 Eric Wong <wsysdu at gmail.com>:
> I run both of these commands and found out that there're sockets leaking.
> Most of them are TCP connections in CLOSE_WAIT state. There're also some
> socket with "can't identify protocol".
>
> So, What's the problem? Is it related to the timeout in the server config?
> I'm using the default value.
>
>
Since they're sockets, it could be either the database connections or
the HTTP connections, right? Is there some way you can insert a fake
database layer to see if that makes your problem go away, to try and
isolate the problem?
Antoine
> 在 2012-1-8,下午10:56, Brandon Allbery 写道:
>
> On Sun, Jan 8, 2012 at 09:50, Felipe Almeida Lessa <felipe.lessa at gmail.com>
> wrote:
>>
>> If you're on Linux, then you may
>>
>> $ ls -lah /proc/PID/fd
>>
>> to see where these open files are pointing to.
>
>
> And on other systems lsof can determine this information.
>
> $ lsof -p PID
>
> --
> brandon s allbery allbery.b at gmail.com
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list