<div dir="ltr">Bryan,<div><br></div><div>I'm not sure about IdP v4-- we are still running IdP v3.  Are you able to interrogate the "/idp/status" resource?  That tells me the "used_memory" and "maximum_memory" settings of a running instance.  This was especially useful when we had out of memory issues.  For us, it turned out we had not configured tomcat to use the available memory.  The status endpoint showed that the maximum_memory was much less than we actually had allocated for the host.</div><div><br></div><div>Now we are using the containers, which I believe have some reasonable defaults baked in.  In tomcat's "setenv.sh", I see "CATALINA_OPTS='-XX:+UseG1GC -Xmx3000m'".  I also see "JAVA_OPTS='-Xmx3000m'" is set as an environment variable in the Dockerfile we are using.</div><div><br></div><div>Thanks,</div><div>Carl Waldbieser</div><div>ITS</div><div>Lafayette College</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 17, 2020 at 6:08 PM Bryan K. Walton <<a href="mailto:bwalton%2B1573850983@leepfrog.com">bwalton+1573850983@leepfrog.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This morning, our IdP, running 4.0.1 on CentOS 8 (JDK 11), threw a Java<br>
Out of Memory Error:<br>
<br>
Sep 17 11:00:45 idp java[610134]: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp762218386-30247"<br>
<br>
About this time, the IdP quit responding to authentication requests. The<br>
system had plenty of system memory free, at this time.  A restart of the<br>
shibboleth-idp service restored things to working order.<br>
<br>
One thing to note, our IdP is not downloading InCommon's metadata.  Does<br>
anybody have any suggestions for how we can/should prevent this out of<br>
memory error?  <br>
<br>
When I run:<br>
java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize'<br>
<br>
It shows that our InitialHeapSize is 60MB. And our MaxHeapSize is 944MB.<br>
<br>
Thanks,<br>
Bryan<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div>