see
http://stackoverflow.com/questions/88235/how-to-deal-with-java-lang-outofmemoryerror-permgen-space-error

and the links there. There seems to be no good solution :-/
The only reliable solution is restart, before you haven't enough
permgenspace (use jvisualvm to monitor)
And try to increase -XX:MaxPermSize to make the restart interval longer
or using jrebel or sth. like that should probably help too.

Regards,
Peter.

> the second time we had the error
>
>       java.lang.OutOfMemoryError: PermGen space
>
> and solr stopped responding.
>
> we use the default jetty installation with jdk1.6.0_21. after the last
> time i tried to set the garbage collector "right"
> these are my settings:
>
>       -D64 -server -Xms892m -Xmx2048m -XX:+UseConcMarkSweepGC
> -XX:+UseParNewGC -XX:-HeapDumpOnOutOfMemoryError
> -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
>
> as far as i thought, "-XX:+CMSClassUnloadingEnabled
> -XX:+CMSPermGenSweepingEnabled" should also cleanup the PermGen space.
>
> what can we do? 
>
> ok, at the moment solr is not stopped and is running "all time". maybe
> we should do a regular (daily) restart, then the problem should be
> fixed. but how can we adjust the garbage settings, so that the PermGen
> space is not running out of space...
>
>
> markus
>
>   


-- 
http://jetwick.com twitter search prototype

Reply via email to