I have been trying to perform load testing using the below configuration for Shibboleth SP  (installed on a dedicated server)<div><br></div><div>Shibboleth SP 2.4.2 64 bit</div><div>Red Had Linux OS on Dual core  (each core of Intel(R) Xeon(R) CPU X5570  @ 2.93GHz )</div>
<div>4GB RAM</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I&#39;m running the <span class="bold highlight search-highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 153); ">load</span> tests using JMeter performing the following steps using 50 threads for 300 seconds(5 mins): </span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span>1. Request protected url in apache(redirects to an external authenticator hosted in weblogic) </span><br>
<span>2. Return after external authentication to IDP and prepare the Authn Response to be posted to SP </span><br><span>3. Post /Shibboleth.sso/SAML2/POST with relaystate and samlresponse to the SP. </span></span></div><div>
<span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span><br></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span>The first two steps behave quite well in a high <span class="bold highlight search-highlight" style="font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 153); background-position: initial initial; background-repeat: initial initial; ">load</span>, however, step 3 starts quite fast but very quickly, <span class="bold highlight search-highlight" style="font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 153); background-position: initial initial; background-repeat: initial initial; ">shibd</span> reaches 99% cpu (memory utilization is stable) and response time increases from 50ms up to beyond a minute in a very short time.</span><br>
</span></div></div><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span><br></span></span></div><div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Tried reducing the number of Threads in Jmeter but the problem persisted.</font></div>
<div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Came across this previous post with a similar issue and tried al the tweaks that Scott suggested but the problem is persisting</font></div>
<div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><a href="http://shibboleth.1660669.n2.nabble.com/shibd-load-test-td5862748.html">http://shibboleth.1660669.n2.nabble.com/shibd-load-test-td5862748.html</a></font></div>
<div><br></div><div>tweaks i tried are as below</div><div>-- changed to worker mpm mode </div><div>-- reduce the ulimit from 1024 to 512</div><div><br></div><div>I believe the server configuration is decent enough and the cpu utilization is peaking at even very low hit rates (treid even with 2 Threads in Jmeter) which is unacceptable in a production scenario.</div>
<div><br></div><div>Kidnly suggest if there is something i am doing wrong or if there can be any tweaks done in shibd to improve this.</div>