[
https://issues.apache.org/struts/browse/WW-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43466#action_43466
]
Hilbert Schraal commented on WW-2474:
-------------------------------------
Did you set:
struts.devMode=false
struts.configuration.xml.reload=false
This did the trick for me :)
> Struts form tag increases the file descriptors to struts2-core-2.0.11.jar
> there by causing "Too many files open" exception
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: WW-2474
> URL: https://issues.apache.org/struts/browse/WW-2474
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.0.11
> Environment: Apache 2.2, Tomcat 5.0.28, Java 1.5, Struts 2.0.11
> Reporter: Santhosh
>
> Whenever I try to access a file with struts2 form tag, the server opens a
> certain number of file descriptors to struts2-core-2.0.11.jar and nevers
> releases them.
> Here is the content of the sample file:
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <s:form action="Search" onsubmit="return checkSearch(this)">
> <p class="btn"><input type="image" src="i/btn_search.gif" /></p>
> </s:form>
> Number of file descriptors after server restart:
> lsof | grep struts2-core-2.0.11.jar | wc -l
> 1
> Number of file descriptors after accessing the file:
> lsof | grep struts2-core-2.0.11.jar | wc -l
> 9
> On rfereshing the page, the number of file descriptors keeps on increasing.
> AFAIK, the server is not creating file descriptors for any other struts tag.
> This is the content of another file:
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <s:set name="personName" value="santhosh"/>
> Hello, <s:property value="#personName"/>. How are you?>
> The file descriptor on executing this file did not increase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.