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.s
ocketAccep
t(Native Method)
at java.net.PlainSocketImpl.a
ccept(Unkn
own Source)
at java.net.ServerSocket.impl
Accept(Unk
nown Source)
at java.net.ServerSocket.acce
pt(Unknown
Source)
at org.apache.jk.common.Chann
elSocket.a
ccept(Chan
nelSocket.
java:293)
at org.apache.jk.common.Chann
elSocket.a
cceptConne
ctions(Cha
nnelSocket
.ja
va:647)
at org.apache.jk.common.Chann
elSocket$S
ocketAccep
tor.runIt(
ChannelSoc
ket
.java:857)
at org.apache.tomcat.util.thr
eads.Threa
dPool$Cont
rolRunnabl
e.run(Thre
adP
ool.java:684)
at java.lang.Thread.run(Unkno
wn Source)
Jun 28, 2007 12:22:16 PM org.apache.catalina.core.S
tandardWra
pperValve 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