struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-2474) Struts form tag increases the file descriptors to struts2-core-2.0.11.jar there by causing "Too many files open" exception
Date Fri, 02 May 2008 06:51:05 GMT

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

Don Brown resolved WW-2474.
---------------------------

    Resolution: Won't Fix

This is actually a feature because we want to scan for updates and refresh the contents if
the file was touched in dev mode.  If you can think of a better way to do it, please reopen.

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


Mime
View raw message