Advertisement

06.28.2007 at 05:42PM PDT, ID: 22665803
[x]
Attachment Details

Java Too Many Open Files Crashes Tomcat

Asked by dougp23 in Apache Tomcat Application Server, Java Programming Language, Red Hat Linux

Tags: , , , ,

My mail server runs Tomcat and stopped accepting requests from web browsers today.  When I looked in the Catalina logs, I had this:

java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:293)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.ja
va:647)
at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket
.java:857)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
Jun 28, 2007 12:22:16 PM org.apache.catalina.core.StandardWrapperValve invoke

I am running CentOS 4.4 Linux (basically a copy of Red Hat Enterprise Linux).  Should I increase my file handles (and if so, where) and is there a way to have the system flush these unused handles once in a while?Start Free Trial
[+][-]06.28.2007 at 10:11PM PDT, ID: 19386597

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.28.2007 at 10:14PM PDT, ID: 19386607

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Tomcat Application Server, Java Programming Language, Red Hat Linux
Tags: open, many, too, files, tomcat
Sign Up Now!
Solution Provided By: ksivananth
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.29.2007 at 06:02AM PDT, ID: 19389056

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.30.2007 at 05:23AM PDT, ID: 19395613

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2007 at 10:07PM PDT, ID: 19401257

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2007 at 10:09PM PDT, ID: 19401265

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32