Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 63328 invoked by uid 500); 17 Aug 2001 05:05:23 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 63319 invoked from network); 17 Aug 2001 05:05:23 -0000 Received: from unknown (HELO mis.easycall.net.ph) (203.104.82.7) by h31.sny.collab.net with SMTP; 17 Aug 2001 05:05:23 -0000 Received: by MIS with Internet Mail Service (5.0.1460.8) id ; Fri, 17 Aug 2001 13:06:14 +0800 Message-ID: <9C3CCFCE6CBFD3118F1100A0C9996932E4939D@MIS> From: "Artigas, Ricardo Y." To: tomcat-user@jakarta.apache.org Subject: RE: How can I find number of 'open files' Date: Fri, 17 Aug 2001 13:06:13 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I assume you are closing the sockets that you create/open? :~) Ricky Y. Artigas Analyst/Programmer / Database Administrator Information Technology Division Easycall Communications Phils., Inc. > ------------------------------- > IMPORTANT NOTICE: > This message (and any attachment hereto) may contain privileged and/or > confidential information specific to EasyCall. If you are not the intended > addressee indicated in this message, you may not copy or disseminate this > message (or any attachment hereto) to anyone. Instead, please destroy this > message (and any attachment hereto), and kindly notify the sender by reply > email. Any information in this message (and any attachment thereto) that > do not relate to the official business of EasyCall shall be understood as > neither given nor endorsed by the company. > > > -----Original Message----- > From: Ivan Markovic [SMTP:ivan@sculptlight.com] > Sent: Friday, August 17, 2001 11:39 AM > To: tomcat-user@jakarta.apache.org > Subject: How can I find number of 'open files' > Importance: High > > I had a problem a while back with 'too many open files'. So I checked > and fix some bugs in my code and increased the limit (Solaris running > on Sun Netra T1). But now the problem is back. I suspect it is a > problem with my code. > > How can I find out how many files are 'open'? If I can track that > number then I can hit my code through Tomcat and see roughly when the > files are not being closed. Is there some Unix function that will > allow me to monitor open files? > > Below is the kind of error that I see.... thank you. > > java.net.SocketException: Too many open files > at java.net.PlainSocketImpl.socketAccept(Native Method) > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:421) > at java.net.ServerSocket.implAccept(ServerSocket.java:243) > at java.net.ServerSocket.accept(ServerSocket.java:222) > at > org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.jav > a:277) > at > org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:344) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411) > at java.lang.Thread.run(Thread.java:484) > Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] > shutdown due to exception: java.net.SocketException: Too many open > files > > -- > Ivan Markovic > SculptLight > http://www.sculptlight.com > (+353) 87 2939256 > (+353) 1 2982205 > > 114 Lower Churchtown Rd, > Dublin 14, > Ireland.