myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Commented) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3493) Cache info about non-existant resources in org.apache.myfaces.application.ResourceHandlerImpl.createResource()
Date Tue, 13 Mar 2012 02:34:38 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-3493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228150#comment-13228150
] 

Leonardo Uribe commented on MYFACES-3493:
-----------------------------------------

I found the source of the problem in MYFACES-3208, which was fixed in 2.1.2 / 2.0.8. Please
update your myfaces version to 2.1.6 or 2.0.12. I checked and a cache in that location is
not necessary. I think we can close this issue as won't fix, because the problem was MYFACES-3208,
which was already fixed.


                
> Cache info about non-existant resources in org.apache.myfaces.application.ResourceHandlerImpl.createResource()
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3493
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3493
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: Extension Feature
>    Affects Versions: 2.1.6
>         Environment: Linux FC15
>            Reporter: Dmitry Kukushkin
>
> The existent resources are cached in the public Resource createResource(String resourceName,
String libraryName, String contentType) method,
> which is good, but the information about resources, which are not existent ( deriveResourceMeta(loader,
resourceName, libraryName, localePrefix) returned null ) is not cached.
> Thus at the next requests for the same resource the same resource lookup operations will
happen, which may be expensive.
> In my case, for example (Tomcat + Spring + MyFaces + Tomahawk), for every html tag, lookup
on the file system and in all classpaths (including ~30 jars) is performed (and failing),
which de-gradates response time by factor of 25!

--
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

        

Mime
View raw message