Org.apache.tomcat.jni.error Too Many Open Files
Contents |
at org.apache.tomcat.jni.Socket.accept(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:1110) at java.lang.Thread.run(Thread.java:619) Mar 12, 2009 12:01:34 PM org.apache.tomcat.util.net.AprEndpoint$Acceptor run SEVERE: Socket accept failed in catalina.out then you might have
Tomcat Java Net Socketexception Too Many Open Files
too many open file handles. Too be sure … lsof and ulimit tomcat too many open files are you friends use ulimit -a to see you current configuration: $ ulimit -a core file size (blocks, -c) tomcat ulimit 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 13664 max locked memory (kbytes, -l) 32 max memory size (kbytes,
Tomcat File Descriptors
-m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 13664 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited so open files (-n) 1024 shows there are 1024 possible open file handles per process. ulimit
Too Many Open Files Java
-n
here for a quick
Too Many Open Files Linux
overview of the site Help Center Detailed answers to any lsof questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://ehaselwanter.com/en/blog/2009/03/13/tomcat-too-many-open-files/ about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow http://stackoverflow.com/questions/19636676/error-in-tomcat-too-many-open-files is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error in tomcat “too many open files” up vote 7 down vote favorite 3 I have an application running on tomcat and sometimes I have the error below: SEVERE: Socket accept failed java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) at java.net.ServerSocket.implAccept(ServerSocket.java:522) at java.net.ServerSocket.accept(ServerSocket.java:490) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216) at java.lang.Thread.run(Thread.java:722) .... SEVERE: Error processed default web.xml named conf/web.xml at /local/myApp/apache-tomcat/conf/web.xml java.io.FileNotFoundException: /local/myApp/apache-tomcat/conf/web.xml (Too many open files) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.
org.apache.tomcat.util.net.AprEndpoint$Acceptor runSEVERE: Socket accept http://grokbase.com/t/tomcat/users/07aje0vqse/too-many-open-files-error failedorg.apache.tomcat.jni.Error: Too many open filesat org.apache.tomcat.jni.Socket.accept(Native Method)atorg.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 offile descriptors. I'm on debian etch andcat /proc/sys/fs/file-maxgives369540I don't believe that I've hit this limit or that increasing this valuewould be sensible.Given too many that everything in linux is a file, does this mean thatconnections are not being closed properly? Where would be a good placeto start debugging this problem?Thanks in advanceDan______________________________________________________________________This email has been scanned by the MessageLabs Email Security System.For more information please too many open visit http://www.messagelabs.com/email______________________________________________________________________---------------------------------------------------------------------To start a new topic, e-mail: users@tomcat.apache.orgTo unsubscribe, e-mail: users-unsubscribe@tomcat.apache.orgFor additional commands, e-mail: users-help@tomcat.apache.org reply Tweet Search Discussions Search All Groups users 8 responses Oldest Nested Peter Bauer 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 Peter Bauer at Oct 18, 2007 at 12:15 pm ⇧ Am Donnerstag 18 Oktober 2007 schrieb Daniel M Garland:Hi allI'm seeing a problem on a Tomcat instance:18-Oct-2007 12:41:47 org.apache.tomcat.util.net.AprEndpoint$Acceptor runSEVERE: Socket accept failedorg.apache.tomcat.