File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat std error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat std error" Watch "Tomcat std error" New topic

Tomcat std error

Kartik Ruppa
Ranch Hand

Joined: Aug 28, 2002
Posts: 60
Can someone tell me what this means.I see it in the tomcat std error.

org.apache.jk.common.ChannelSocket processConnection
WARNING: server has closed the current connection (-1)
Lucas Sanabio

Joined: Feb 19, 2005
Posts: 11
I'm trying to know the samething. I got tons of that message on my tomcat log and after some time it throws me the following error:

WARNING: Exception executing accept Too many open files
at Method)
at org.apache.jk.common.ChannelSocket.accept(
at org.apache.jk.common.ChannelSocket.acceptConnections(
at org.apache.jk.common.SocketAcceptor.runIt(
at org.apache.tomcat.util.threads.ThreadPool$

And this error is making my application been temporary unvailable.


Lucas Sanabio<br />-----------------------------------------------------------------------------<br />Sun Certified Programmer for the Java 2 Platform<br />Consultor Java - Marx Tecnologia<br />Email:<br />URL: <a href="" target="_blank" rel="nofollow"></a><br />Cel: (62) 8117-5266
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
I think that these are two different issues. The second one - "too many open files" is pretty easy to solve. I'd start by assuming that you're on some sort of Unix system, correct? I don't tend to see this problem under Windows so much as everything basically runs as root anyway. Under Unix (including Linux) do a 'ulimit -n' to show how many open files you're allowed normally. Do this as the user who runs your Tomcat server. Many systems default to 1024 though some are higher and some are lower. SunOS used to make it 256 (!). Unfortunately the manner in which you increase the value varies from Unix to Unix. Let us know what O/S you're on and we can go from there.

<a href="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Ghouse Sultan

Joined: Jun 22, 2004
Posts: 3
Hi Scott,
I am also getting the same error. My application is on HP-UX. I want to know what is the error and How to get rid of it.

Thanks & Regards,
I agree. Here's the link:
subject: Tomcat std error
It's not a secret anymore!