> From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Subject: Re: [Mostly OT] Sweeping the permgen space: is that a good thing?
> GC in Perm Gen whenever tenured gets GC'd: > it might depend on the GC algo and JVM version, > but that's off by default at least for CMS and > many JVM versions Yes, class unloading is off by default when using CMS, but CMS is also off by default, so that point is somewhat moot. You have to either explicitly request UseConcMarkSweepGC, or specify both UseAutoGCSelectPolicy and set MaxGCPauseMillis to a value less than or equal to that of AutoGCSelectPauseMillis to turn on CMS. If you do manage to enable CMS, you can set CMSClassUnloadingEnabled to allow it to process PermGen. Alternatively, when CMS is on, you can set ExplicitGCInvokesConcurrentAndUnloadsClasses to let a call to System.gc() (including the button in JConsole) handle PermGen. (If you're not confused by now, you weren't reading closely enough :-) Let's hope all of that silliness is thrown away when G1 becomes the default collector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org