Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 92003 invoked from network); 27 Apr 2003 07:04:39 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 27 Apr 2003 07:04:39 -0000 Received: (qmail 12250 invoked by uid 97); 27 Apr 2003 07:06:49 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 12243 invoked from network); 27 Apr 2003 07:06:49 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 27 Apr 2003 07:06:49 -0000 Received: (qmail 90574 invoked by uid 500); 27 Apr 2003 07:04:25 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 90562 invoked from network); 27 Apr 2003 07:04:25 -0000 Received: from imsm030.netvigator.com (218.102.48.148) by daedalus.apache.org with SMTP; 27 Apr 2003 07:04:25 -0000 Received: (qmail 4698 invoked from network); 27 Apr 2003 07:04:35 -0000 Received: from n218103215131.netvigator.com (HELO mac.com) (218.103.215.131) by imsm030.netvigator.com with SMTP; 27 Apr 2003 07:04:35 -0000 Date: Sun, 27 Apr 2003 15:04:34 +0800 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: SocketException From: Charles So To: tomcat-user@jakarta.apache.org Content-Transfer-Encoding: 7bit Message-Id: <8043244A-787E-11D7-B188-003065B2A2AA@mac.com> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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