4.1.2 has a robust page pool "built in" that expires pages automatically.
On 7/19/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
Hi Rudie. A few extra notes ... One problem was permgen being filled by Tapestry's class creation/instrumentation, and the other is that the default Pool only adds pages - it never removes or limits them. If you check old Tapestry 3 era posts about "out of memory" you'll also see some recommendations for JVM settings: -XX:MaxNewSize=300m -XX:MaxPermSize=300m Also for Tapestry 4(.0?) Henri Dupre created a "SoftPool" that used SoftReferences which solved his memory problems. You could also enable the cache/pool reset service. HTH. Cheers, Nick. Rudie Ekkelenkamp wrote: > Hi Nick, > > Thanks for the suggestion. > We're already using a custom Engine class, so it shouldn't be too hard > to create a custom Pool. > > Cheers, > > Rudie. > > -----Oorspronkelijk bericht----- > Van: Nick Westgate [mailto:[EMAIL PROTECTED] > Verzonden: donderdag 19 juli 2007 14:28 > Aan: Tapestry users > Onderwerp: Re: T3: OutOfMemory on ExprssionBinding and StaticBinding > >> Is there a way in Tapestry 3 to limit the maximum number of page >> entries? > > I don't think it's built in, no. > >> In Tapestry 4 there is the org.apache.tapestry.page-pool-max-active >> setting, but it doesn't seem to be available for Tapestry 3. >> Maybe any other suggestions on how to avoid this large number of >> Bindings? > > Not sure, but have a look in AbstractEngine: > > * Returns an new instance of [EMAIL PROTECTED] Pool}, with the standard > * set of adaptors, plus [EMAIL PROTECTED] BSFManagerPoolableAdaptor} for > * [EMAIL PROTECTED] BSFManager}. > * > * <p>Subclasses may override this > * method to configure the Pool differently. > * > * @since 3.0 > * > **/ > > protected Pool createPool(RequestContext context) > > > Cheers, > Nick. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > DISCLAIMER: > > Dit bericht (met bijlagen) is met grote zorgvuldigheid samengesteld. Voor mogelijke onjuistheid en/of onvolledigheid van de hierin verstrekte informatie kan Stichting Kennisnet Ict op school geen aansprakelijkheid aanvaarden, evenmin kunnen aan de inhoud van dit bericht (met bijlagen) rechten worden ontleend. De inhoud van dit bericht (met bijlagen) kan vertrouwelijke informatie bevatten en is uitsluitend bestemd voor de geadresseerde van dit bericht. Indien u niet de beoogde ontvanger van dit bericht bent, verzoekt Stichting Kennisnet Ict op school u dit bericht te verwijderen, eventuele bijlagen niet te openen en wijst Stichting Kennisnet Ict op school u op de onrechtmatigheid van het gebruiken, kopiƫren of verspreiden van de inhoud van dit bericht (met bijlagen). > > This message (with attachments) is given in good faith. Stichting Kennisnet Ict op school cannot assume any responsibility for the accuracy or reliability of the information contained in this message (with attachments), nor shall the information be construed as constituting any obligation on the part of Stichting Kennisnet Ict op school. The information contained in this message (with attachments) may be confidential or privileged and is only intended for the use of the named addressee. If you are not the intended recipient, you are requested by Stichting Kennisnet Ict op school to delete this message (with attachments) without opening it and you are notified by Stichting Kennisnet Ict op school that any disclosure, copying or distribution of the information contained in this message (with attachments) is strictly prohibited and unlawful. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com