Re: OutOfMemoryError

2006-01-25 Thread Spencer Crissman
gt; > > >This was specifically blamed on the JVM, and not a Tomcat bug. The > > fact > > > that > > > >it seems to happen with JBoss as well would tend to support that > > > assertion. > > > > > > > >-Jason > > > > > >

Re: OutOfMemoryError

2006-01-25 Thread Cliff Zhao
t > > >it seems to happen with JBoss as well would tend to support that > > assertion. > > > > > >-Jason > > > > > >On Wednesday 25 January 2006 10:52, Sergiy Kyrylkov wrote: > > > > > > > > >>Here is more > > >

Re: OutOfMemoryError

2006-01-25 Thread Spencer Crissman
makes you think it is a JVM issue? > >> > >>Sergiy > >> > >> > >> > >>>-Original Message- > >>>From: Jason Dyer [mailto:[EMAIL PROTECTED] > >>>Sent: Wednesday, January 25, 2006 5:44 PM > >>>To: Ta

Re: OutOfMemoryError

2006-01-25 Thread Ivano
Dyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 5:44 PM To: Tapestry users Subject: Re: OutOfMemoryError I had the same problem with tomcat. You can delay it by increasing permanent memory to the JVM, but the only real fix seems to be restarting on deploy... Apparently this is

Re: OutOfMemoryError

2006-01-25 Thread Jason Dyer
moryExceptions > > Jason, what makes you think it is a JVM issue? > > Sergiy > > > -Original Message- > > From: Jason Dyer [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, January 25, 2006 5:44 PM > > To: Tapestry users > > Subject: Re: OutOfMemoryError

RE: OutOfMemoryError

2006-01-25 Thread Sergiy Kyrylkov
Here is more http://wiki.jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptions Jason, what makes you think it is a JVM issue? Sergiy > -Original Message- > From: Jason Dyer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 25, 2006 5:44 PM > To: Tapestry users &

Re: OutOfMemoryError

2006-01-25 Thread Jason Dyer
I had the same problem with tomcat. You can delay it by increasing permanent memory to the JVM, but the only real fix seems to be restarting on deploy... Apparently this is a JVM issue, not particular to any app server. On Wednesday 25 January 2006 10:38, Cliff Zhao wrote: > After several time

RE: OutOfMemoryError

2006-01-25 Thread Sergiy Kyrylkov
You have to allocate more space for permanent object space using java -XX:MaxPermSize=128m or whatever you want instead of 128 MB. Sergiy == Multiplex Systems LLC http://www.mpxsys.com == > -Original Message- > From: Cliff Zhao [mailto:[EMAIL PR

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
e 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 around. You can do it, but

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

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
I don't believe that calling System.gc() will have the immediate affect you require. The call is more of a request than a command. -Original Message- From: seloha . [mailto:[EMAIL PROTECTED] Sent: Mon 9/26/2005 12:54 PM To: tapestry-user@jakarta.apache.org Subject: RE: OutOfMemory

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 .
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 unfortunately had no affect. The list uses abstract getter and setter and is initialized in the .page spec with initial

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
It sounds like a memory leak, but it could just be a slow garbage collector as well. Try adding: System.gc() to the end of your transaction to guarantee the garbage collector runs after each page render. Then see if repeated page renders still blow out your memory. If they do, the

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