hi,

permanent must nor be permanent ;-)

you can also configure the permanent generation of the vm's heap:
e.g. add to your CATALINA_OPTS:

-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled -XX:PermSize=256m -XX:MaxPermSize=512m

Especially redeploying often, dynamic class generation, stubs etc. can
produce a lot of classes, that a typically stored in the permanent
generation of the heap.

see http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

yours,
Christoph


Stephen Winnall wrote:
> I'm trying to deploy my Cocoon application in Tomcat and am getting the
> following error:
> 
>     java.lang.OutOfMemoryError: PermGen space
> 
> Wisdom on the net has it that this happens as a result of large memory
> leaks: if classes used in a servlet are referenced from outside the
> servlet, the garbage collector cannot recycle them when the application
> is undeployed; redeploying the application results in the classes being
> loaded a further time, and so on until memory runs out. I have looked in
> the Cocoon mailing lists for other occurrences of this problem, but I've
> found nothing, so I assume the problem is in one of the classes I wrote
> to extend my application.
> 
> Does anyone have experience with tracking down this sort of problem in
> Cocoon apps?
> 
> Steve
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Triplemind Internet OHG
Berlinerstr. 2
DE-63065 Offenbach
Germany

http://www.triplemind.com
Mail [EMAIL PROTECTED]
Tel  +49 69 82367670
Fax  +49 69 82367654

Unternehmensdaten: Triplemind OHG
Geschaeftsfuehrung: Christoph Gaffga, Mathias Ziegler
Bankverbindung: Postbank Frankfurt,  BLZ: 50010060, Kto: 563581608,
IBAN: DE28 5001 0060 0563 5816 08, BIC: PBNKDEFF
Eingetragen im HR Offenbach am Main 40202, USt-IdNr.: DE210080643

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to