Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: JBossWeb-2.1.11.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Perform hot deployment of an application with a large number of jar files several times, while watching the open file descriptor count. It will increase for a period of time until GC finalises the FileDescriptor objects.

      Show
      Perform hot deployment of an application with a large number of jar files several times, while watching the open file descriptor count. It will increase for a period of time until GC finalises the FileDescriptor objects.
    • Workaround Description:
      Hide

      Perform a forced full GC after each hot deployment

      Show
      Perform a forced full GC after each hot deployment

      Description

      ExtensionValidator.validateExtension() closes the InputStream for the web application's manifest, but does not do so for the manifests from jar files. This results in file descriptors being left open until the next garbage collection finalises them.

      While deploying applications with many jar files, this can result in errors because the file descriptor limit has been reached.

      This is already fixed in Tomcat 7, and backporting the patch at http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/util/ExtensionValidator.java?r1=881599&r2=883562 is simple.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rmaucher Remy Maucherat
                  Reporter:
                  jameslivingston James Livingston
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: