Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 54103 invoked from network); 3 Jul 2007 23:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 23:04:20 -0000 Received: (qmail 35560 invoked by uid 500); 3 Jul 2007 23:04:15 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 35324 invoked by uid 500); 3 Jul 2007 23:04:15 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 35313 invoked by uid 99); 3 Jul 2007 23:04:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 16:04:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 16:04:10 -0700 Received: by wa-out-1112.google.com with SMTP id l24so3005757waf for ; Tue, 03 Jul 2007 16:03:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mhSvFVlWlyKFpynneOuRXdNYYp2kcbwre3j+1qs2QEnoCYqGfdZWlL5ucLt3WTnRXRDnN0FdEcVTvVctRZC9N03+rcOsSGi88+scg2cuN/8qiKCZ6GWK1tiYwSfSL1pMwmWnlYMczt3Q8uvlb6sC1uukMIpC981PUXY2ijkdvDc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GDtdwDyJJViZPNFmqkXM78jhsmz2he/XrTrQCG1MwWjz4PvVENAiJEJVZcrMsy5crnMgXSTMaGMV9FvgwI6LFOmxUVxzu7+SNDJeGAfwJofO1f3YhmHAYqV8jSfOVIHq5ekrdQJSfCo+O1F1GPcuOpDTELFlJImCI9VA9Z/B8NY= Received: by 10.114.175.16 with SMTP id x16mr6677854wae.1183503829703; Tue, 03 Jul 2007 16:03:49 -0700 (PDT) Received: by 10.115.18.12 with HTTP; Tue, 3 Jul 2007 16:03:49 -0700 (PDT) Message-ID: <6dac79b90707031603s50d2b90dk880f480efdf8dd0f@mail.gmail.com> Date: Tue, 3 Jul 2007 16:03:49 -0700 From: "Adam Winer" To: "MyFaces Discussion" Subject: Re: [Trinidad] Causing Too many open files error? In-Reply-To: <6dac79b90707020835w3bb3f3d8he122b6d2c40cb901@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6dac79b90706290903x21c98433wdfa6e31a123803e8@mail.gmail.com> <2757D8C1BC0F4A48A467290AC6D1560C0373E331@FMG-EXS03.fmg.ad.munich-airport.de> <6dac79b90707020835w3bb3f3d8he122b6d2c40cb901@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I'm not reproducing a problem. At the very minimum, in FileInputStream.finalize(), fd.handle always seems to be -1 now, whereas it used to be still set a lot before. Admittedly I'm not using Tomcat, antiJarLocking or no antiJarLocking. Is it possible that Matthias gave you a snapshot before the fix landed? -- Adam On 7/2/07, Adam Winer wrote: > Thanks - everything in web.xml seems as it should be. > Back to the code for me... > > -- Adam > > > > On 7/1/07, Fleischer Peter wrote: > > Hi Adam, > > > > there are a lot of open files just after deployment of the application.= That's right. And also these files are closed by first GC. But the files l= isted in my last post are really opened repeatedly and I see more and more = of them with every open browser session. The .js files seem to be cached in= the browser so the open files are not duplicated every time. But by doing = a browser refresh I can increase the number of open files by about 30. > > > > This is using Tomcat 5.5.23 running with Sun's Java VM 1.5.0_08. This i= s my web.xml: > > > > -------------- SNIP -------------------- > > > > > > > > Webapplication for Sequence Planning > > Weasel > > > > > > org.apache.myfaces.AUTO_SCROLL > > true > > > > > > > > org.apache.myfaces.PRETTY_HTML > > true > > > > > > > > > > Use client-side state saving. In Trinidad, it is an > > optimized, token-based mechanism that is almost always a > > better choice than the standard JSF server-side state savin= g. > > > > javax.faces.STATE_SAVING_METHOD > > client > > > > > > > > > > Konfiguration faces-config.xml in mehrere Dateien aufgeteil= t. > > > > javax.faces.CONFIG_FILES > > /WEB-INF/beans.xml,/WEB-INF/navigation.xml > > > > > > > > > > ADF Faces also supports an optimized strategy for caching s= ome > > view state at an application level, which significantly imp= roves > > scalability. However, it makes it harder to develop (updat= es to > > pages will not be noticed until the server is restarted), a= nd in > > some rare cases cannot be used for some pages (see ADF Face= s > > documentation for more information). > > > > org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CA= CHE > > true > > > > > > > > > > If this parameter is enabled, ADF Faces will automatically > > check the modification date of your JSPs, and discard saved > > state when they change; this makes development easier, > > but adds overhead that should be avoided when your applicat= ion > > is deployed. > > > > org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION= > > false > > > > > > > > > > Enables Change Persistence at a session scope. By default, > > Change Persistence is entirely disabled. The ChangeManager = is > > an API, which can persist component modifications (like, > > is a showDetail or tree expanded or collapsed). For providi= ng > > a custom Change Persistence implementation inherit from the > > ADF Faces API's ChangeManager class. As the value you have > > to use the fullqualified class name. > > > > org.apache.myfaces.trinidad.CHANGE_PERSISTENCE > > session > > > > > > > > > > =DCber den AlternateViewHandler wird Facelets als ViewHandl= er in die > > Verkettung der ViewHandler mit aufgenommen. > > > > org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER<= /param-name> > > com.sun.facelets.FaceletViewHandler > > > > > > > > > > Use Documents Saved as *.xhtml. > > > > javax.faces.DEFAULT_SUFFIX > > .xhtml > > > > > > > > > > Special Facelets Debug Output for Development. > > > > facelets.DEVELOPMENT > > false > > > > > > > > > > automaticDataPoller.timeoutSeconds > > 60 > > > > > > trinidad > > org.apache.myfaces.trinidad.webapp.TrinidadFilter= > > > > > > > > trinidad > > faces > > REQUEST > > ERROR > > > > > > > > > > Regelm=E4=DFige DB-Selects. > > fmg.lf14.weasel.AutomaticDataPoller > > > > > > Faces Servlet > > faces > > javax.faces.webapp.FacesServlet > > > > > > > > > > Resource Loader servlet f=FCr Trinidad. > > resources > > org.apache.myfaces.trinidad.webapp.ResourceServl= et > > > > > > > > Resource Loader servlet f=FCr FMG Ressourcen. > > FMGResources > > fmg.lz06.jsfUtil.resource.ResourceServlet > > > > > > > > PrintTable > > fmg.lf14.weasel.PrintTable > > > > > > > > > > faces > > /faces/* > > > > > > > > resources > > /adf/* > > > > > > > > PrintTable > > /PrintTable > > > > > > > > 403 > > /faces/error403.xhtml > > > > > > > > 404 > > /faces/error404.xhtml > > > > > > > > 500 > > /error500.jsp > > > > > > > > java.lang.Throwable > > /error500.jsp > > > > > > > > java.lang.RuntimeException > > /faces/exception.xhtml > > > > > > > > > > 30 > > > > > > > > index.html > > > > > > > > Weasel Gesamt > > > > secureWeasel > > > > /faces/pages/* > > > > > > > > weasel > > > > > > > > > > Weasel Detailansicht > > > > secureWeaselDetail > > > > /faces/pages/tableSequenceDetail.xhtml > > > > > > > > weasel-detail > > > > > > > > > > FORM > > > > > > /faces/login.xhtml > > /faces/login.xhtml > > > > > > > > > > Rolle f=FCr prinzipiellen Zugriff auf Weasel. > > weasel > > > > > > > > Rolle f=FCr Zugriff auf Detail-Sequenz. > > weasel-detail > > > > > > > > jdbc/myoracle > > javax.sql.DataSource > > Container > > Shareable > > > > > > > > ---------------- SNIP ----------------- > > > > Please let me know, if you need to see any other files. > > > > Peter > > > > > > > > -----Urspr=FCngliche Nachricht----- > > Von: Adam Winer [mailto:awiner@gmail.com] > > Gesendet: Freitag, 29. Juni 2007 18:03 > > An: MyFaces Discussion > > Betreff: Re: [Trinidad] Causing Too many open files error? > > > > > > These files should at most get locked once, and only at > > startup, and the first GC should flush them... Are you > > really seeing repeated locks on these files? Could > > you show your web.xml? > > > > -- Adam > > > > > > > > On 6/29/07, Fleischer Peter wrote: > > > > > > > > > Hi Adam, > > > > > > yesterday Matthias sent me a 1.0.2-SNAPSHOT (tanks again!). I did som= e > > > further testing with Tomcat and having the antiJarLocking option set = to true > > > in the the context.xml. With these settings I think I was able to tra= ck down > > > the problem to a list of filenames as follows: > > > > > > > > > java 12738 tomcat 65r VREG 85,40 26783 270804 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/adf/styles/= cache/fmg-desktop-1745436599-ie-6-cmp.css > > > java 12738 tomcat 66r VREG 85,40 2961 2719345 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CharSets.js > > > java 12738 tomcat 67r VREG 85,40 18937 2719361 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CoreFormat.js > > > java 12738 tomcat 68r VREG 85,40 3292 2719346 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateField.js > > > java 12738 tomcat 69r VREG 85,40 365 2719356 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFieldFormat.js > > > java 12738 tomcat 70r VREG 85,40 12361 2719350 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFormat.js > > > java 12738 tomcat 71r VREG 85,40 10945 2719358 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Locale.js > > > java 12738 tomcat 72r VREG 85,40 44505 2719364 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Core.js > > > java 12738 tomcat 73r VREG 85,40 4944 2719342 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Window.js > > > java 12738 tomcat 74r VREG 85,40 3267 2719355 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/TableProxy.js > > > java 12738 tomcat 75r VREG 85,40 1021 2719259 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Poll.js > > > java 12738 tomcat 76r VREG 85,40 2918 2719348 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorField.js > > > java 12738 tomcat 77r VREG 85,40 391 2719357 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFieldFormat.js > > > java 12738 tomcat 78r VREG 85,40 5857 2719351 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFormat.js > > > java 12738 tomcat 79r VREG 85,40 18382 2719353 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Shuttle.js > > > java 12738 tomcat 80r VREG 85,40 4648 2719363 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Page.js > > > java 12738 tomcat 81r VREG 85,40 639 2719362 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/StatusIndicator.js > > > java 12738 tomcat 82r VREG 85,40 10520 2791503 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/RequestQueue.js > > > java 12738 tomcat 83r VREG 85,40 2041 2791500 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequest.js > > > java 12738 tomcat 84r VREG 85,40 1630 2791501 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequestEvent.js > > > java 12738 tomcat 85r VREG 85,40 1594 2791502 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/IFrameXMLRequestEvent.js > > > java 12738 tomcat 86r VREG 85,40 86 2653467 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/t.gif > > > java 12738 tomcat 87r VREG 85,40 86 2653467 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/t.gif > > > java 12738 tomcat 88r VREG 85,40 86 2653467 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/t.gif > > > java 12738 tomcat 90r VREG 85,40 26783 270804 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/adf/styles/= cache/fmg-desktop-1745436599-ie-6-cmp.css > > > java 12738 tomcat 91r VREG 85,40 26783 270804 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/adf/styles/= cache/fmg-desktop-1745436599-ie-6-cmp.css > > > java 12738 tomcat 92r VREG 85,40 2961 2719345 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CharSets.js > > > java 12738 tomcat 93r VREG 85,40 18937 2719361 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CoreFormat.js > > > java 12738 tomcat 94r VREG 85,40 3292 2719346 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateField.js > > > java 12738 tomcat 95r VREG 85,40 365 2719356 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFieldFormat.js > > > java 12738 tomcat 96r VREG 85,40 12361 2719350 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFormat.js > > > java 12738 tomcat 97r VREG 85,40 10945 2719358 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Locale.js > > > java 12738 tomcat 98r VREG 85,40 44505 2719364 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Core.js > > > java 12738 tomcat 99r VREG 85,40 4944 2719342 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Window.js > > > java 12738 tomcat 100r VREG 85,40 3267 2719355 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/TableProxy.js > > > java 12738 tomcat 101r VREG 85,40 1021 2719259 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Poll.js > > > java 12738 tomcat 102r VREG 85,40 2918 2719348 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorField.js > > > java 12738 tomcat 103r VREG 85,40 391 2719357 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFieldFormat.js > > > java 12738 tomcat 104r VREG 85,40 5857 2719351 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFormat.js > > > java 12738 tomcat 105r VREG 85,40 18382 2719353 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Shuttle.js > > > java 12738 tomcat 106r VREG 85,40 4648 2719363 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Page.js > > > java 12738 tomcat 107r VREG 85,40 639 2719362 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/StatusIndicator.js > > > java 12738 tomcat 108r VREG 85,40 10520 2791503 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/RequestQueue.js > > > java 12738 tomcat 109r VREG 85,40 2041 2791500 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequest.js > > > java 12738 tomcat 110r VREG 85,40 1630 2791501 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequestEvent.js > > > java 12738 tomcat 111r VREG 85,40 1594 2791502 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/IFrameXMLRequestEvent.js > > > java 12738 tomcat 112r VREG 85,40 2961 2719345 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CharSets.js > > > java 12738 tomcat 113r VREG 85,40 18937 2719361 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/CoreFormat.js > > > java 12738 tomcat 114r VREG 85,40 3292 2719346 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateField.js > > > java 12738 tomcat 115r VREG 85,40 365 2719356 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFieldFormat.js > > > java 12738 tomcat 116r VREG 85,40 12361 2719350 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/DateFormat.js > > > java 12738 tomcat 117r VREG 85,40 10945 2719358 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Locale.js > > > java 12738 tomcat 118r VREG 85,40 44505 2719364 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Core.js > > > java 12738 tomcat 119r VREG 85,40 4944 2719342 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Window.js > > > java 12738 tomcat 120r VREG 85,40 3267 2719355 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/TableProxy.js > > > java 12738 tomcat 121r VREG 85,40 1021 2719259 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Poll.js > > > java 12738 tomcat 122r VREG 85,40 2918 2719348 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorField.js > > > java 12738 tomcat 123r VREG 85,40 391 2719357 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFieldFormat.js > > > java 12738 tomcat 124r VREG 85,40 5857 2719351 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/ColorFormat.js > > > java 12738 tomcat 125r VREG 85,40 18382 2719353 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Shuttle.js > > > java 12738 tomcat 126r VREG 85,40 4648 2719363 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/Page.js > > > java 12738 tomcat 127r VREG 85,40 639 2719362 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/StatusIndicator.js > > > java 12738 tomcat 128r VREG 85,40 10520 2791503 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/RequestQueue.js > > > java 12738 tomcat 129r VREG 85,40 2041 2791500 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequest.js > > > java 12738 tomcat 130r VREG 85,40 1630 2791501 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/XMLRequestEvent.js > > > java 12738 tomcat 131r VREG 85,40 1594 2791502 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/jsLibs/xhr/IFrameXMLRequestEvent.js > > > java 12738 tomcat 133r VREG 85,40 286 2653419 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/list-bullet.gif > > > java 12738 tomcat 134r VREG 85,40 417 2653475 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/siready.gif > > > java 12738 tomcat 135r VREG 85,40 781 2653474 > > > /home/tomcat/CATALINA_BASE/work/Catalina/localhost/weasel/loader/META= -INF/adf/images/sibusy.gif > > > > > > > > > This was tested with clearing the browser cache in before doing any r= equests > > > to my application and navigating around a little bit. Repeating this = test > > > with a second browser (also clean cache) duplicated the count of open= files. > > > > > > For now we manually do a GC in our application every 5 minutes to all= eviate > > > the problem but this is certainly only a quick&dirty solution. > > > > > > Peter > > > > > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: Adam Winer [mailto:awiner@gmail.com] > > > Gesendet: Donnerstag, 21. Juni 2007 23:29 > > > > > > An: MyFaces Discussion > > > Betreff: Re: [Trinidad] Causing Too many open files error? > > > > > > > > > On 6/21/07, Simon Lessard wrote: > > > > Hmmm, I assume this is used mainly to detect skin files' version? > > > > > > > > > > > > It's used in a bunch of places to detect modification - skin > > > files, ResourceServlet, jsp modifications, etc. > > > I've checked in a fix that should resolve this, > > > but I'm not 100% sure. I've mostly been looking at > > > the calls to FileInputStream.finalize() - there were a > > > lot coming in that had still-open FileDescriptors. > > > I'd appreciate further testing. > > > > > > > > > It'd be worthwhile to look at optimizing further to block > > > any attempt to call getLastModified() on a JAR, but > > > for now I'm hoping it'll be enough to close up all URLConnections. > > > In a bit of googling, it'd seem that this has bitten a lot > > > of developers. > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > > > > > > > > > > > Maybe we could create a kind of ResourceDescriptor file that would = include > > > two URLs, the real one and the container file's (the .jar URL for ins= tance, > > > but would be the same as the real URL most of the time). The getLastM= odified > > > method of the ResourceDescriptor could then use that second URL for p= urpose > > > of modification checks, theorically preventing the JVM from opening t= he JAR > > > file. > > > > > > > > > > > > Regards, > > > > > > > > ~ Simon > > > > > > > > > > > > > > > > On 6/21/07, Adam Winer < awiner@gmail.com> wrote: > > > > > I think I've found the problem - Trinidad calls > > > > > URLConnection.getLastModified() in a number > > > > > of places. If that's pointing at an URL from > > > > > inside a JAR, this will implicitly open the > > > > > JAR file, and not release the file until GC. > > > > > Looking at solutions now. > > > > > > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > > > > > > > > On 6/21/07, Fleischer Peter > > > wrote: > > > > > > > > > > > > > > > > > > The problem is reproducable. After restarting tomcat and some r= equests > > > to my application the jar file will again be opened multiple times. E= very > > > (initial?) request to a page increases the number. Eventually after s= ome > > > time the files are garbage collected. > > > > > > > > > > > > Peter > > > > > > > > > > > > -----Urspr=FCngliche Nachricht----- > > > > > > Von: Scott O'Bryan [mailto:darkarena@gmail.com] > > > > > > Gesendet: Donnerstag, 21. Juni 2007 00:29 > > > > > > An: MyFaces Discussion > > > > > > Betreff: Re: [Trinidad] Causing Too many open files error? > > > > > > > > > > > > > > > > > > I saw this as well using Oracle JDeveloper so I agree that I do= n't > > > think this is a Tomcat issue. I'm not sure what might be causing thi= s > > > though because I shut down my webserver and restarted it and everythi= ng has > > > been working fine since. > > > > > > > > > > > > What happens when you restart tomcat? > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > On 6/20/07, Fleischer Peter > > > wrote: > > > > > > > Hello, > > > > > > > > > > > > > > we are developing a quite simple application based on MyFaces= , > > > Trinidad and Facelets. After deploying this application to a Tomcat 5= .5.23 > > > and using the application for a while we are facing connection errors= in > > > Tomcat caused by too many open files. > > > > > > > > > > > > > > Checking the running Tomcat process with lsof (list open file= s) we > > > discovered, that /WEB-INF/lib/trinidad- > > > impl-1.0.1-incubating-SNAPSHOT.jar was open for about 300 > > > times. The number rises with every request. At some time eventually a > > > garbage collection closes all these files. > > > > > > > > > > > > > > I don't think this is a Tomcat error, because this jar is the= only > > > jar file opened so many times. Perhaps some Trinidad code fails to cl= ose a > > > file? Is this a known issue? > > > > > > > > > > > > > > Many thanks in advance. > > > > > > > > > > > > > > Peter Fleischer > > > > > > > > > > > > > > > > > _____________________________________________________________ > > > > > > > > > > > > > > Munich Airport International > > > > > > > Flughafen M=FCnchen GmbH > > > > > > > Peter Fleischer > > > > > > > ITED Competence Center Application Development > > > > > > > Support Division Information Technology > > > > > > > P. O. Box 23 17 55 > > > > > > > 85326 M=FCnchen > > > > > > > Phone: +49 89 975-3 24 30 > > > > > > > Fax: +49 89 975-3 24 06 > > > > > > > > > > > > > > > > > > > > > Vorsitzender des Aufsichtsrats: - Chairman of the Supervisory= Board: > > > > > > > Staatsminister Prof. Dr. Kurt Faltlhauser > > > > > > > Gesch=E4ftsf=FChrung: - Executive Board: > > > > > > > Dr. Michael Kerkloh, Walter Vill und Peter Trautmann > > > > > > > Handelsregister: - Commercial Register: RG M=FCnchen, HR-Nr. = B 5448 > > > > > > > Sitz der Gesellschaft: - Registered Office: M=FCnchen > > > > > > > > > > _____________________________________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >