1 Reply Latest reply on Apr 27, 2010 1:04 PM by Wolfgang Knauf

    Too many open files

    Gautam Tandon Newbie
      Hi all,

      I'm facing this error since past few days (ever since I believe our server has started taking more
      load/website traffic).

      JBoss version: 4.2.0
      Database: mysql
      Operating System: Linux (Ubuntu)

      (I hope this much information and the stack trace below is enough. Please let me know if you need
      more information to be able to provide me with better answers!)

      I checked on the net (other blogs) and looks like this is related to Linux file handle limit. However
      before I go ahead and fiddle around with OS default settings (file handle limits and all), I want to
      make sure if this is really OS issue and not something that I can fix via some setting in JBoss itself?

      Please let me know your thoughts.

      Thanks!
      GT


      HTTP Status 500 -


      type Exception report

      message

      description The  server encountered an internal error () that prevented it from  fulfilling this request.

      exception

      org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to compile class for JSP
           org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:485)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:337)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      org.apache.jasper.JasperException: Unable to compile class for JSP
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:574)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.io.FileNotFoundException: <my-jboss-home>/server/default/work/jboss.web/localhost/<my-app-name>/org/apache/jsp/<my-jsp-name>_jsp.java (Too many open files)
           java.io.FileOutputStream.open(Native Method)
           java.io.FileOutputStream.<init>(Unknown Source)
           java.io.FileOutputStream.<init>(Unknown Source)
           org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:152)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      note The full stack trace of the root cause is  available in the JBossWeb/2.0.1.GA logs.