Gert-Jan, You may have already checked this, however I'll post it just in case. You can easily check the open files situation on the server by doing the following: cd /proc/sys/fs cat file-nr
On my system, I get: [root@venus fs]# cat file-nr 1495 703 36038 The first number is the total allocated file handles ever allocated, the second is the numer currently in use and the third is the maximum available. By default on RedHat 7.3 the third number is 8192. I'm not sure about Debian. If the first number equals the third number, then you need to change the maximum number of available file handles by doing the following: echo "33565" > /proc/sys/fs/file-max The "33565" is the total maximum that you would want to have open at any given time. All of this assumes, however, that you are running the proc file system. Otherwise you have to edit an include file and recompile the kernel. Sincerely, Pantek Incorporated Justin L. Spies URL: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -----Original Message----- From: Gert-Jan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat server crash We have a web-application that runs under Tomcat 4.0.3 on a Debian system with JRE 1.4.1. Our application has worked fine for a couple of months but after a recent upgrade of the webapp we have had several crashes of the application. We are unable to find the cause of the crashes but this is what we can figure out from the log-files: The application runs without problems for some time but then suddenly it starts giving 404 (Not found) responses, it does this for a while (less than a minute) and then gives 500 responses (Server error). A couple of minutes later we find the following error in the catalina_log: 2003-02-12 18:53:07 HttpConnector[8180] accept: java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) at java.net.ServerSocket.implAccept(ServerSocket.java:439) at java.net.ServerSocket.accept(ServerSocket.java:410) at org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java: 993) at java.lang.Thread.run(Thread.java:536) It seems that there are too many open filehandles but it's unclear whether this is the cause or a consequense of the crash. Has anyone ever had this problem before? Thanks, Gert-Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
