<div dir="ltr"><div><div><div><div><div>We have been getting this error from time to time with our Shibboleth Identity Provider in Tomcat 6 and before you reply to this thread...<br><br></div>1) Yes I know this is caused by a memory leak and can be &#39;mitigated&#39; by increasing the max permgen size: <a href="https://wiki.shibboleth.net/confluence/display/SHIB2/IdPApacheTomcatPrepare">https://wiki.shibboleth.net/confluence/display/SHIB2/IdPApacheTomcatPrepare</a><br>

<br></div>2) Or better yet possibly resolved in Tomcat 7: <a href="http://wiki.apache.org/tomcat/MemoryLeakProtection">http://wiki.apache.org/tomcat/MemoryLeakProtection</a><br><br></div>-- What I don&#39;t know and would LOVE input on is:<br>

<br></div>1) How do you detect or prevent the evil PermGen error beforehand? My understanding is increasing the MaxPermGenSize is only delaying the inevitable memory leak build up.<br><br></div>2) Better yet: Best practices? What have you already done in your architecture to avoid or defeat this kind of issue?<br clear="all">

<div><div><div><div><div><div><div><div><font face="tahoma, sans-serif"><div><font face="tahoma, sans-serif"><br></font></div>Joshua Riffle</font><div><font face="tahoma, sans-serif">Software Engineer<br></font><div><font color="#CC0000" face="tahoma, sans-serif"><b>Azusa Pacific University</b></font></div>

</div></div>
</div></div></div></div></div></div></div></div>