tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Bauer <peter.ba...@apus.co.at>
Subject Re: Too Many Open Files error
Date Thu, 18 Oct 2007 12:14:45 GMT
Am Donnerstag 18 Oktober 2007 schrieb Daniel M Garland:
> Hi all
>
> I'm seeing a problem on a Tomcat instance:
>
> 18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor run
> SEVERE: Socket accept failed
> org.apache.tomcat.jni.Error: Too many open files
>          at org.apache.tomcat.jni.Socket.accept(Native Method)
>          at
> org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1001)
>          at java.lang.Thread.run(Thread.java:595)
>
> Looking through Google and the advice seems to increase the number of
> file descriptors. I'm on debian etch and
>
> cat /proc/sys/fs/file-max
> gives
> 369540
>
> I don't believe that I've hit this limit or that increasing this value
> would be sensible.
>
> Given that everything in linux is a file, does this mean that
> connections are not being closed properly? Where would be a good place
> to start debugging this problem?
>
> Thanks in advance
> Dan
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

Hi Dan,

try using lsof to check which files or network connections (also counts) you 
have opened.

br,
Peter

-- 
Peter Bauer
APUS Software G.m.b.H.
A-8074 Raaba, Bahnhofstrasse 1/1
Email: peter.bauer@apus.co.at
Tel: +43 316 401629 24
Fax: +43 316 401629 9

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message