Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3474

[perf] LifecycleProviderFactory does not cache created Factory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.12, 2.1.6
    • 1.2.12, 2.0.13, 2.1.7
    • None
    • None

    Description

      It seems that
      org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) tries to locale implementation of a interface, but the instance found is never stored in application map: see code in org.apache.myfaces.config.annotation.LifecycleProviderFactory.getLifecycleProviderFactory(ExternalContext)

      this lead to Webappclassloader.loadClass invocation, which is sychronized and accesses disk.

      Can significantly affect perfomance of myfaces app with managed-bean in multithreaded environment.

      maybe reason for http://prezi.com/dr3on1qcajzw/www-world-wide-wait-devoxx-edition/ ?

      Attachments

        1. MYFACES-3474.patch
          1 kB
          Martin Kočí

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: