RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Hensley, Richard
, October 06, 2005 4:15 PM To: 'Tapestry users' Subject: RE: OutOfMemoryError Tapestry 4.0 I had some success with an approach like you describe in an old system where I was doing runtime code generation and compilation (nothing too sophisticated, I was manually writing legal

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Patrick Casey
To: tapestry-user@jakarta.apache.org > Subject: Re: OutOfMemoryError Tapestry 4.0 > > Could some artificial restrictions on the pages, components, beans > whatever > lower the natural java + vm limits that eventually reload is possible? > > As far I get it the problems are mainly due to a missi

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Peter Ertl
ble? having any great ideas? -Ursprüngliche Nachricht- Von: Hensley, Richard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 19:34 An: Tapestry users Betreff: RE: OutOfMemoryError Tapestry 4.0 Playing with class loaders in Java is kind like playing with fire with only a small bucket of water

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Mike Perham
://blogs.opensymphony.com/plightbo/2005/07/its_the_tools_stupid.html -Original Message- From: Peter Ertl [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 4:41 PM To: 'Tapestry users' Subject: AW: OutOfMemoryError Tapestry 4.0 One of the main reasons for using Ruby

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Howard Lewis Ship
> > > -Ursprüngliche Nachricht- > Von: Hensley, Richard [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 6. Oktober 2005 19:34 > An: Tapestry users > Betreff: RE: OutOfMemoryError Tapestry 4.0 > > > Playing with class loaders in Java is kind like playing with f

AW: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Peter Ertl
having any great ideas? -Ursprüngliche Nachricht- Von: Hensley, Richard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 19:34 An: Tapestry users Betreff: RE: OutOfMemoryError Tapestry 4.0 Playing with class loaders in Java is kind like playing with fire with only a small

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Howard Lewis Ship
ley, Richard [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 06, 2005 10:24 AM > > To: Tapestry users > > Subject: RE: OutOfMemoryError Tapestry 4.0 > > > > Generated Classes are loaded into a class loader so they can be > > instantiated > > by Tapestry

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Hensley, Richard
rd -Original Message- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 10:30 AM To: 'Tapestry users' Subject: RE: OutOfMemoryError Tapestry 4.0 Isn't the major source of the OP's memory use though the 600+ new instances of javassist.Ct

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread seloha .
t;[EMAIL PROTECTED]> wrote: Shouldn't the old ones go out of scope though and get gc'd? --- Pat -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 9:52 AM To: Tapestry users; [EMAIL PROTECTED] Subject: Re: OutOfMem

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Hensley, Richard
AM To: Tapestry users Subject: RE: OutOfMemoryError Tapestry 4.0 wouldn't it be a good thing to use a discardable class loader in dev-mode? > --- Ursprüngliche Nachricht --- > Von: "Hensley, Richard" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betr

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Patrick Casey
r 06, 2005 10:24 AM > To: Tapestry users > Subject: RE: OutOfMemoryError Tapestry 4.0 > > Generated Classes are loaded into a class loader so they can be > instantiated > by Tapestry and Hivemind. The only way to release the generated classes is > to release the class loader. > &g

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Peter Ertl
wouldn't it be a good thing to use a discardable class loader in dev-mode? > --- Ursprüngliche Nachricht --- > Von: "Hensley, Richard" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: RE: OutOfMemoryError Tapestry 4.0 > Datum: Thu, 6

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Hensley, Richard
cenzi [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 10:10 AM To: Tapestry users Subject: Re: OutOfMemoryError Tapestry 4.0 Howard Lewis Ship escribió: >That might be reasonable if you are running with >-Dorg.apache.tapestry.disable-caching=true > >With caching disabled

RE: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Patrick Casey
Shouldn't the old ones go out of scope though and get gc'd? --- Pat > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 06, 2005 9:52 AM > To: Tapestry users; [EMAIL PROTECTED] > Subject: Re: OutO

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Leonardo Quijano Vincenzi
Howard Lewis Ship escribió: That might be reasonable if you are running with -Dorg.apache.tapestry.disable-caching=true With caching disabled, Tapestry has to constantly create new enhanced subclasses for every page and every component. Shouldn't it delete old classes? --

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Howard Lewis Ship
nce the number of pages that can be successfully > > rendered before an OutOfMemoryError exception occurs is reduced by > > changing > > pages the problem resides at the presentation (Tapestry) level. > > > > Any thoughts? > > > > Paul > > > > &g

Re: OutOfMemoryError Tapestry 4.0

2005-10-06 Thread Paolo Donà
That looks like it'd work, yep. Dunno if the Hibernate session is > the root of your bug, but A) it might be and B) that looks like it'll > clear > it out. > > --- Pat > > >-Original Message- > >From: seloha . [mailto:[EMAIL PROTECTED] > >

RE: OutOfMemoryError Tapestry 4.0

2005-09-27 Thread seloha .
Monday, September 26, 2005 1:15 PM To: tapestry-user@jakarta.apache.org Subject: RE: OutOfMemoryError Tapestry 4.0 Pat, So in my case then since the Hibernate session is controlled by Spring after getting the large list I could subsequently call a method in my DAO which looks something li

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
, 2005 1:15 PM > To: tapestry-user@jakarta.apache.org > Subject: RE: OutOfMemoryError Tapestry 4.0 > > Pat, > > So in my case then since the Hibernate session is controlled by Spring > after > getting the large list I could subsequently call a method in my DAO which &g

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
; List l = q.list(); For (int x=0; x< l.size(); x++) s.evict(l.get(x)); -Original Message- From: seloha . [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 12:45 PM To: tapestry-user@jakarta.apache.org Subject: RE: OutOfMemoryError Tapestry 4.0 Pat,

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mark Stang
You were right to suggest it, it can't hurt. Mark -Original Message- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent: Mon 9/26/2005 2:08 PM To: 'Tapestry users' Subject: RE: OutOfMemoryError Tapestry 4.0 True, but it's better than not asking at all

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
Pat > -Original Message- > From: Mark Stang [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 1:02 PM > To: Tapestry users; tapestry-user@jakarta.apache.org > Subject: RE: OutOfMemoryError Tapestry 4.0 > > I don't believe that calling System.gc() will have

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mark Stang
to null (and nulling out the list of 5000 items) on the page's post-render cleanup phase, right? >-Original Message- >From: seloha . [mailto:[EMAIL PROTECTED] >Sent: Monday, September 26, 2005 3:11 AM >To: tapestry-user@jakarta.apache.org >Subject: OutOfMemoryError Tap

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
26, 2005 12:45 PM > To: tapestry-user@jakarta.apache.org > Subject: RE: OutOfMemoryError Tapestry 4.0 > > Pat, > > 1) Yes I am setting the object list to null. > > 2) I have not put a log statement in the code to check it but I have set a > break point in debug mod

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
] Sent: Monday, September 26, 2005 11:55 AM To: tapestry-user@jakarta.apache.org Subject: RE: OutOfMemoryError Tapestry 4.0 Thanks Pat, One thing I was not doing which you pointed out was setting the list to null in pageDetached(PageEvent event) so I added this and also included System.gc(). This unfor

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Sergei Dubov
Paul, Instead of poking in the dark, get your boss (assuming you have one :-)) to buy you a good memory profiler like YourKit (http://www.yourkit.com) or JProbe (http://www.quest.com/jprobe/) and you will be golden. Serge P.S. YourKit is just great... seloha . wrote: Yes I do in the develop

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
e lifespan of the session, regardless of whether or not your code holds a reference to them. > -Original Message- > From: seloha . [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 11:55 AM > To: tapestry-user@jakarta.apache.org > Subject: RE: OutOfMemoryError

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Yes I do in the development system but in the different production test systems caching is enabled. regards Paul Mind Bridge <[EMAIL PROTECTED]> wrote: Do you have caching disabled by any chance? seloha . wrote: Thanks ausias, I have thought about reducing the number of ob

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
nulling out the list of 5000 items) on the page's post-render cleanup phase, right? -Original Message- From: seloha . [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 3:11 AM To: tapestry-user@jakarta.apache.org Subject: OutOfMemoryError Tapestry 4.0 I have a page which al

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
em? --- Pat > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 11:45 AM > To: Tapestry users > Subject: Re: OutOfMemoryError Tapestry 4.0 > > The likely difference is how Tapestry renders the page; i

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Howard Lewis Ship
The likely difference is how Tapestry renders the page; it will buffer the contents in memory (a consequence of the Body component) before streaming the entire result to the user. If your page does not use any JavaScript, then you should be able to build it without the Body component and the resul

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mind Bridge
Do you have caching disabled by any chance? seloha . wrote: Thanks ausias, I have thought about reducing the number of objects but a prvious version of the app written with struts was able to display many more thn 5000 lines with no problem. A rethink on presentation may be a good idea. Als

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Thanks ausias, I have thought about reducing the number of objects but a prvious version of the app written with struts was able to display many more thn 5000 lines with no problem. A rethink on presentation may be a good idea. Also providing the container with more memory may help. Thanks a

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
right? > -Original Message- > From: seloha . [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 3:11 AM > To: tapestry-user@jakarta.apache.org > Subject: OutOfMemoryError Tapestry 4.0 > > I have a page which allows a user to search the database based on various > cr

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread ausias vives
Hi, In my experience, the problem you're describing is not related directly with Tapestry, It looks like more as a standard problem with the available memory in the servlet container. I'll try to avoid returning 5000 objects at the same time, depending on the size of the objects this can be a l

OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
I have a page which allows a user to search the database based on various criteria. I have restricted the number of returned items to 5000. I display the items in the same search page using the @For component with volatile="ognl:true" . Repeated searches which return 5000 items will result in a