As i said before. we can apply this patch, but there is one problem
and that is OSGI wicket solutions.. That do jar updates by just dropping them in a running system
How are we going to test that?

Can you test something else? ( i also will try to test that)

comment out this code:

try
                    {
                        connection.getInputStream().close();
                    }
                    catch (Exception ex)
                    {
                        // ignore
                    }

because if i look in the debugger it seems to me that lastmodified doesn't really open a stream.. (but i can be wrong i have to test this further)
But if that is not the case then we do here to much! we open the inputstream and the resources while we are trying to close it..

johan


On 9/20/06, SourceForge.net <[EMAIL PROTECTED]> wrote:
Patches item #1562130, was opened at 2006-09-20 13:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jean-Baptiste Quenot (quenotj)
Assigned to: Nobody/Anonymous (nobody)
Summary: File descriptor leak in URLResourceStream

Initial Comment:
See discussion at
http://www.nabble.com/File-descriptor-leak-in-DEVELOPMENT-mode-tf2280488.html#a6334936

A file descriptor leak is observed in DEVELOPMENT mode,
as resources are reloaded every second, and also in
DEPLOYMENT mode when serving resources.  This leads to
an OS error "Too many files open", quickly in
DEVELOPMENT (a few hours), and slowly in DEPLOYMENT.

Even if the real fix has to occur in the JDK (or the
JVM) itself, Wicket could simply prevent the reloading
of resources located in JARs as a workaround.  This is
what adresses the attached patch.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_id=119783

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to