We have found a pretty weird situation with "too many open files" error on our alpha-testing site. Further analysis showed that on each page refresh the following resources get repeatedly obtained from the wicket's .jar and add to the number of open files: 'wicket/ajax/wicket-ajax.js' 'wicket/extensions/ajax/markup/html/modal/res/modal.css' 'wicket/extensions/ajax/markup/html/modal/res/modal.js' 'wicket/extensions/markup/html/tree/res/tree.css' 'wicket/extensions/markup/html/tree/res/tree.js'
Eventually (due to garbage collection?) the number of open files goes down again. But we wanted to know why those files stayed open in the first place and were not closed upon retrieving a resource. It looks like switching to the "deployment" mode from "development" one would significantly reduce the peak numbers of the open files/streams to wicket .jar-s, and extracting resources from the .jar would reduce it even better. We were told that the original reason for files staying open is a Java bug (the fact that URLConnection doesnt have a .close), which causes those nasty results when combined with development mode trying to monitor [resource] files for changes and reloading them. We were also told that there is a workaround for that problem in SVN somewhere, but it's probably not backported to 1.2.5 . I have 2 questions in that regard: (1) Where can we find those workarounds in the code? (2) Is it too much work to backport them to 1.2.5 so when it's released it doesn't contain the problem? Thanks, Bob. -- View this message in context: http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user