Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-02 Thread beboris
Thanks for the hints. Between those and what we've already known, we should be fine... Bob. Johan Compagner wrote: Tomcat can do that: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html see anti resource and anti jar locking. I think the end result will be that tomcat

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner
can't you run in deployment mode instead of development mode? then that shouldn't happen. I can see if we can backport it. johan On 2/1/07, beboris [EMAIL PROTECTED] wrote: We have found a pretty weird situation with too many open files error on our alpha-testing site. Further analysis

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread beboris
We will, when we are on production. Now that we are are still in alpha we prefer development (hey, we wrote our first line of wicket code 5-6 weeks ago!) Also, even in deployment mode 'lsof' still shows us a lot of open files (one per resource) if we don't unpack resources from the .jar . It may

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner
one per resource will i think not really change. johan On 2/1/07, beboris [EMAIL PROTECTED] wrote: We will, when we are on production. Now that we are are still in alpha we prefer development (hey, we wrote our first line of wicket code 5-6 weeks ago!) Also, even in deployment mode 'lsof'

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Wasn't it optimized now so that it only hits jars once and only hits per resource where normal files are involved? Eelco On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote: one per resource will i think not really change. johan On 2/1/07, beboris [EMAIL PROTECTED] wrote: We will,

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner
yes the modification checker. But we do need to really load the resource out of the jar file once. So that file handle will be used. johan On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Wasn't it optimized now so that it only hits jars once and only hits per resource where normal files

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Yeah, but that would be always one fd for a jar, no matter how many files in it that have to be read, right? Eelco On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote: yes the modification checker. But we do need to really load the resource out of the jar file once. So that file handle will

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner
that is what you would think... But why generates a modification check one file handle for every check in the file? because UrlConnection.connect() has again a JarUrlConnection internally that makes a new connection to that jar file and UrlConnection does have a connect() but not a disconnect()

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Would it be possible and useful to cache the URL connection? Does it have a time out and/ or does it use an exclusive lock? Eelco On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote: that is what you would think... But why generates a modification check one file handle for every check in the

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner
why would you cache? and which one? the url connection to an entry in a jar file (thats the JarUrlConnection) or (i guess) the FileUrlConnection (to the jar file itself) both don't make much sense to cache the first one we don't need to cache we only need to use it once by really loading the

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Too bad, Eelco On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote: why would you cache? and which one? the url connection to an entry in a jar file (thats the JarUrlConnection) or (i guess) the FileUrlConnection (to the jar file itself) both don't make much sense to cache the first one

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread beboris
It's hard for me to say, what the right way to fix this situation is. The number of open files (that look to the OS as wicket .jar files) will go up significantly and then go down (down - probably due to the garbage collection). It is during those spikes caused by many users hitting wicket pages

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Igor Vaynberg
the os should be able to handle at least a few thousand open file handles. furthermore you can configure it to have more if you need to. only one handle should be open per resource (no way to avoid that) in a jar, so a spike of user activity shouldnt affect this at all as resources cache

[Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-01-31 Thread beboris
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'