Too Many Files open error

Dear all,

I have an application deployed on windows 2000 professional + Jboss 3.2.0 w Jetty. we are constantly receiving an Exception after every three four days which is:

java.io.IOException: Too many open files

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(FileInputStream.java:106)

at org.mortbay.util.FileResource.getInputStream(FileResource.java:183)

at org.mortbay.util.CachedResource.update(CachedResource.java:73)

at org.mortbay.util.CachedResource.(CachedResource.java:37)

at org.mortbay.util.Resource.cache(Resource.java:311)

at org.mortbay.http.HttpContext.getResource(HttpContext.java:817)

at org.mortbay.jetty.servlet.WebApplicationContext.getResource(WebApplic

ationContext.java:1208)

at org.mortbay.jetty.servlet.Default.getResource(Default.java:144)

at org.mortbay.jetty.servlet.Default.service(Default.java:165)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360

)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati

onHandler.java:294)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5

58)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication

Context.java:507)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)

at org.mortbay.http.HttpServer.service(HttpServer.java:863)

at org.jboss.jetty.Jetty.service(Jetty.java:460)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:

201)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

Whenever this exception occurs, the images stop displaying.

The application starts functionally normally when the JBoss server is stopped and started

Please suggest a solution for this problem.

Thanks.

Baqir

[2395 byte] By [Syed_Baqir_Ali] at [2007-9-30 11:43:32]
# 1
This is an OS issue.I believe the trick is to change this:Location: C:\WinNT\System32\CONFIG.NTLine:FILES=100 hth,-Alexis
am74686 at 2007-7-4 13:09:57 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 2
Is this also limited to servlets? I have a servlet and an application that open and close files in the same way. I get this error with the servlet, but not the application.
disk42 at 2007-7-4 13:09:57 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 3
maybe this is due to the extra files the servlet container opens for its own purpose.-Alexis
am74686 at 2007-7-4 13:09:57 > top of Java-index,Enterprise & Remote Computing,AVK Portability...