Re: Number of open files

Shawn McMurdo wrote:
> 
> Hi all,
> I am wondering if it is normal for the server to have a
> large number of file descriptors open simultaneously and
> if it actually closes them when it is done with them.
> 

I've noticed when running Jigsaw on Windows/NT that once it
has served up a '.shtml' file, I can no longer edit that
file because when I try to save it, I get a message box
indicating that some other program has it open. My guess is
that Jigsaw isn't closing '.shtml' files when it's done reading
them.

> After putting some files up on the server and getting some
> hits (probably max of 5 simultaneous clients) I started
> seeing the following exception when attempting to connect
> to the server:
> java.net.SocketException: Too many open files
> 
> The max number of open files per process was 110.
> I bumped this up to 256 and haven't seen a problem
> yet, but was wondering if this number of open files
> would be expected.
> 
> I have included the complete exception stack traces
> from two example exceptions below.
> 
> Thanks!
> Shawn
> 
> PS: Thanks for the .shtml answers.  I thought that was
> what I needed to do, but was a little too unsure of my
> knowledge of Jigsaw to happily delete the html extension
> and recreate it.
> 
> java.net.SocketException: Too many open files
>         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:387)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:206)
>         at java.net.ServerSocket.accept(ServerSocket.java:191)
>         at w3c.jigsaw.http.httpd.run(httpd.java)
>         at java.lang.Thread.run(Thread.java)
> [...]
> java.io.IOException: /w/web/Jigsaw/Jigsaw/WWW/template/maint.html
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java)
>         at w3c.jigsaw.ssi.SSIResource.handle(SSIResource.java)
>         at w3c.jigsaw.ssi.SSIResource.get(SSIResource.java)
>         at w3c.jigsaw.resources.HTTPResource.dispatch(HTTPResource.java)
>         at w3c.jigsaw.resources.HTTPResource.perform(HTTPResource.java)
>         at w3c.jigsaw.ssi.SSIResource.perform(SSIResource.java)
>         at w3c.jigsaw.http.httpd.perform(httpd.java)
>         at w3c.jigsaw.ssi.IncludeCommand.execute(IncludeCommand.java)
>         at w3c.jigsaw.ssi.Segment.get(Segment.java)
>         at w3c.jigsaw.ssi.SSIResource.handle(SSIResource.java)
>         at w3c.jigsaw.ssi.SSIResource.get(SSIResource.java)
>         at w3c.jigsaw.resources.HTTPResource.dispatch(HTTPResource.java)
>         at w3c.jigsaw.resources.HTTPResource.perform(HTTPResource.java)
>         at w3c.jigsaw.ssi.SSIResource.perform(SSIResource.java)
>         at w3c.jigsaw.http.httpd.perform(httpd.java)
>         at w3c.jigsaw.http.Client.processRequest(Client.java)
>         at w3c.jigsaw.http.Client.startConnection(Client.java)
>         at w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java)
>         at w3c.util.CachedThread.run(ThreadCache.java)

-- 
Mike Stolz             mike@imsi.com
Investment Management Services, Inc.
12 E 49th Street, New York, NY 10017

Received on Thursday, 5 June 1997 08:30:45 UTC