Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2196

MenuUtils creates a large number of ThreadLocals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.12-core
    • 2.0.1-core
    • Components
    • None

    Description

      org.apache.myfaces.trinidad.menu.MenuUtils::loadBundle creates a lot of ThreadLocals object which then have a high CPU ipmact at the end of request when they need to be removed

      It is not clear:
      1) Why ThreadLocal is needed at the first place here
      2) Even if it is needed why create it before checking map for existence of bundle

      Attachments

        1. jira-2196-1.2.12.6.2.patch
          8 kB
          Anand V Nath
        2. jira-2196.patch
          9 kB
          Anand V Nath

        Activity

          People

            darkarena Scott O'Bryan
            smalesevic Stevan Malesevic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: