Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8394

Slow startup for large numbers of JSF applications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 6.0.0.Final
    • 6.0.0.M4
    • JSF
    • None

      It looks like the JSF Deployer can cause slow startup if many different JSF applications are deployed. In my testing, it adds about 3 seconds for each JSF deployment. My tests are not conclusive, but I'm guessing that since JSF is now loaded by the WAR's classloader instead of Tomcat's classloader then the JSF classes have to be reloaded for each JSF app. I suspect that this causes extra memory usage as well over the old way of doing it.

      The solution is to allow all WARs that use the same JSF configuration to share the same classloader for those classes.

      I suspect that other deployers such as the Weld deployer and Seam deployer have the same issue. This would be a problem for any deployer that adds jars to the deloyment classpath on the fly.

              ssilvert@redhat.com Stan Silvert
              ssilvert@redhat.com Stan Silvert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: