mercoledì 20 ottobre 2010

Jetty - OutOfMemoryError: PermGen space

il problema, sa come leggo nel web, che lo spazio di memoria dedicato al caricmamento dei vari jar nelle singole webapps non viene gestito da un garbage collector. Ecco come ho tentato di risolvere il problema:

1 spostare le lib in comune nella jetty.home/lib/ext/nomeapp_che_decidi_tu/

2 definire il permgen space e attivare il garbage collector per quell'area di memoria modificando il file /etc/default/jetty elle Java Options aggiungendo :

-XX:+CMSPermGenSweepingEnabled : this setting enables garbage collection in the permgenspace
-XX:+CMSClassUnloadingEnabled : allows the garbage collector to remove even classes from the memory

Nessun commento: