You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2020/10/06 14:26:00 UTC
[jira] [Resolved] (MYFACES-4225) [perf] Negative-Cache whether a
file exists in ExternalContextResourceLoader
[ https://issues.apache.org/jira/browse/MYFACES-4225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved MYFACES-4225.
----------------------------------------
Assignee: Thomas Andraschko
Resolution: Fixed
> [perf] Negative-Cache whether a file exists in ExternalContextResourceLoader
> ----------------------------------------------------------------------------
>
> Key: MYFACES-4225
> URL: https://issues.apache.org/jira/browse/MYFACES-4225
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.2.11
> Reporter: Christian Beikov
> Assignee: Thomas Andraschko
> Priority: Major
> Fix For: 2.3-next-M5
>
>
> I'm seeing many {{sun.nio.fs.UnixException}} being thrown in the underlying code because {{ExternalContextResourceLoader.libraryExists}} calls {{ExternalContext.getResource}} which in the end checks if a file exists on the FS. I'd suggest when the project stage is PRODUCTION, this should be cached. Maybe this could be done by installing an {{ExternalContextWrapper}} that caches all resource lookups? I just see that parsing a XHTML causes many exceptions to be thrown internally which negatively affects performance.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)