[
https://issues.apache.org/jira/browse/TRINIDAD-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625333#action_12625333
]
Harald Kuhn commented on TRINIDAD-73:
-------------------------------------
Thanks.
This fix reduces the used file handles on first request from about 50 to 2.
That's great.
But I want to share two points I have noticed:
1) this fix seems to be useless if your webapp is deployed to Tomcat (Version
5.5.25) with option antiJARLocking="true".
This might be a Tomcat issue.
2) There are still multiple file handles for the generated css files
(Output of lsof)
java 30914 tomcat 4r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 15r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 43r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 54r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 58r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 61r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 86r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 88r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
java 30914 tomcat 97r REG 8,2 90191 833043
/opt/apache-tomcat-5.5.25/work/Catalina/localhost/current/adf/styles/cache/airplus-desktop-uhtlx2-en-ltr-ie-6.0.css
> trinidad-impl.jar file is left open during execution
> ----------------------------------------------------
>
> Key: TRINIDAD-73
> URL: https://issues.apache.org/jira/browse/TRINIDAD-73
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.1-core
> Reporter: Adam Winer
> Assignee: Matthias Weßendorf
> Fix For: 1.2.10-core, 1.0.10-core
>
> Attachments: AggregatingResourceLoader-patch-on-547038.txt,
> CachingResourceLoader-patch-on-549615.txt,
> ProxyResourceLoader-patch-on-518820.txt, ResourceServlet-patch-on-549620.txt,
> URLInputStreamProvider-patch-on-549615.txt, URLUtils-patch-on-660215.txt,
> URLUtils.java
>
>
> When running a Trinidad application, trinidad-impl.jar is getting locked with
> open FileInputStream objects. When GC occurs, the FileInputStreams are
> getting cleared, but as new FileInputStreams are opened on each request, the
> file is eternally locked. Other files are likely getting locked too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.