You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Anand V Nath (Updated) (JIRA)" <de...@myfaces.apache.org> on 2012/01/13 08:01:43 UTC

[jira] [Updated] (TRINIDAD-2196) MenuUtils creates a large number of ThreadLocals

     [ https://issues.apache.org/jira/browse/TRINIDAD-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anand V Nath updated TRINIDAD-2196:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> MenuUtils creates a large number of ThreadLocals
> ------------------------------------------------
>
>                 Key: TRINIDAD-2196
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2196
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.12-core
>            Reporter: Stevan Malesevic
>         Attachments: jira-2196-1.2.12.6.2.patch, jira-2196.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira