On 07/01/2016 02:08 PM, Jeffrey Wong wrote:
Hey there!

I'm running a pretty vanilla CAS system as a login system for a few internal applications at my company at a pretty low traffic rate. My CAS deployment fell off this morning (running 4.2.2) due to Permgen out of memory issues. I've got a few questions as to how best to mitigate CAS' downtime.

Suggestions seem to say that CMSClassUnloadingEnabled should be ticked. Does this help to alleviate issues? (Flag is for cleaning up unused classes out of memory. Does CAS dynamically allocate many classes at runtime that I should be worried about, or am I misconfiguring something?)


I don't know about CAS specifically, but I doubt this will help much. If the classes were loaded, they're probably needed. While it might clean things up in the short term, they will most likely just get loaded again at some point in the future.

I also control the environment and wondering if java 8's memory management and GC implementation would help to mitigate this kind of stuff. Is 4.2.2 supported in java 8 or do I have to wait for the v5 to drop? Does java8 help with memory management?


With Java 8 you'll never have another permgen issue. That memory pool has been removed. Documentation states Java 1.7+, so I would expect 8 to work.

In the short term, just throw more memory at permgen. It's one of the command line flags for when your container starts up. I think by default it is pretty low. Be sure to set -XX:PermSize and -XX:MaxPermSize to the same value. If you're running default, it's probably under 100m, I would go to 512m, unless that's what you already have.

It is possible that if it is doing a lot of application redeploys in the same container that there is a leaking class loader that will cause it to eventually fill it up.

--
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/5776C297.3030701%40ndsu.edu.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to