File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat std error" Watch "Tomcat std error" New topic
Author

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
Greenhorn

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
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:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)


And this error is making my application been temporary unvailable.

Att,


Lucas Sanabio<br />-----------------------------------------------------------------------------<br />Sun Certified Programmer for the Java 2 Platform<br />Consultor Java - Marx Tecnologia<br />Email: lucas@marx.com.br<br />URL: <a href="http://www.marx.com.br" target="_blank" rel="nofollow">http://www.marx.com.br</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="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Ghouse Sultan
Greenhorn

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,
Sultan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat std error