Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat std error

 
Kartik Ruppa
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ghouse Sultan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic