tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles So <charles...@mac.com>
Subject SocketException
Date Sun, 27 Apr 2003 07:04:34 GMT
Hello, I encountered this problem:

java.net.SocketException: Too many open files
          at java.net.PlainSocketImpl.socketAccept(Native Method)
          at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
          at java.net.ServerSocket.implAccept(ServerSocket.java:238)
          at java.net.ServerSocket.accept(ServerSocket.java:217)
          at
org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:268)
          at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:
531)
          at
org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:660)
          at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
          at java.lang.Thread.run(Thread.java:491)


I am using DBCP version 1.0 as the connection pool. The webapp is set
to have a maximum of 40 sessions. Connection to MySQL per session is 5.

This exception occured after I took these steps:

1) stress the webapp and make it open 40 sessions
2) let the sessions time out
3) re-stress the webapp again and make it open 40 sessions
4) let it time out again
5) re-stress the webapp			<--- this is where I encounter the
SocketException




How should I handle this? I am using Tomcat 4.1.24, MySQL 3.XX.56,
Connector/J 3.0.7, on Mac OSX 10.2.5 running JDK1.3.1


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message