Thanks for the suggestions guys.  Josh was right in that what I was seeing was 
not a problem, just what I thought was a problem.  I reduced my heap from about 
1.5GB down to 512MB and saw GC happening as expected and no OOMEs with a 
moderate consistent load on the app.  I think I got the idea that it needed a 
lot of headroom from the dev environment, where production mode was disabled, 
and live class reloading uses up a lot of space (I think), otherwise the 
process was crashing with heap issues.  Thiago, your suggestion of using 
VisualVM was very helpful - a very good tool.  It looks like Tapestry (at least 
5.2.1) is very good at releasing resources - my heap size vs. used heap is 
consistently bouncing between predictable levels even after running tests 24 
hours over a few days.  Very happy with the result.  Summary, the creep was me 
misinterpreting the heap growing because I gave it so much headroom it never 
really needed to GC.

Regards,
Jim.

-----Original Message-----
From: Ivano Luberti [mailto:lube...@archicoop.it] 
Sent: 03 November 2010 13:11
To: users@tapestry.apache.org
Subject: Re: Memory creep

and make sure you trap the exception that can be thrown

Il 03/11/2010 14.02, p.stavrini...@albourne.com ha scritto:
>>  can you give me some
>>> detail on how to go about that?
> Just invoke System.gc();
>
> regards,
> Peter
>
>
>
> ----- Original Message -----
> From: "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Friday, 29 October, 2010 20:55:03 GMT +02:00 Athens, Beirut, Bucharest, 
> Istanbul
> Subject: Re: Memory creep
>
> On Fri, 29 Oct 2010 15:30:23 -0200, Josh Canfield <joshcanfi...@gmail.com>  
> wrote:
>
>>> but your suggestion of forcing garbage collection - can you give me some
>>> detail on how to go about that?
>> http://download.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html
> VisualVM (https://visualvm.dev.java.net/) has a very nice GUI for it.
>

-- 
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to