W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

Re: Servlets: Too many files open

From: Paul Speed <pspeed@augustschell.com>
Date: Thu, 6 May 1999 09:06:03 -0400 (EDT)
Message-ID: <37319327.F9A196F5@augustschell.com>
To: www-jigsaw@w3.org
Hi,

	I'm not very hopeful on this one, but is there a way under
Unix (specifically Linux) to determine how many file descriptors
that a process is using?  Or even total number of descriptors used
system-wide?

	Thanks,
	-Paul (pspeed@progeeks.com)


Yves Lafon wrote:
> 
> On Thu, 6 May 1999, Ingo Schubert wrote:
> 
> > Hi,
> >
> > to test some servlets I use Jigsaw 2.0.1. running on JKD 1.1.7. and
> > Servlet DK
> > 2.0. The OS is Solaris 7  SPARC.
> >
> > When I open more than 16 Servlets I get the Exception:
> > java.net.SocketException: Too many open files
> >         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379)
> >         at java.net.ServerSocket.implAccept(ServerSocket.java:198)
> >         at java.net.ServerSocket.accept(ServerSocket.java:181)
> >         at org.w3c.jigsaw.http.httpd.run(httpd.java)
> >         at java.lang.Thread.run(Thread.java)
> >
> > How can I tell Jigsaw to use more files?
> > I didn't find something in the Admin tool.
> 
> It is not java-related but OS related, type "limit" in an xterm, you will
> see something like this:
> cputime         unlimited
> filesize        unlimited
> datasize        2097148 kbytes
> stacksize       8192 kbytes
> coredumpsize    unlimited
> vmemoryuse      unlimited
> descriptors     64
> 
> to modify it (depending of your shell)
> limit descriptors 1024
> (it will depend on the maximum number of descriptors your kernel allows)
> 
> Note, you must be very careful because of this limitation when you open a
> connection, you have to be sure that it will be closed at some point
> (fd-leaking).
> Regards,
> 
>       /\          - Yves Lafon - World Wide Web Consortium -
>   /\ /  \        Architecture Domain - Jigsaw Activity Leader
>  /  \    \/\
> /    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org
Received on Thursday, 6 May 1999 09:26:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT