tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artigas, Ricardo Y." <...@easycall.net.ph>
Subject RE: How can I find number of 'open files'
Date Fri, 17 Aug 2001 05:06:13 GMT
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.

Mime
View raw message