IdPProdLoadTest having connection refused exception
Qasim Lone
Qasim.Lone at dpsnc.net
Fri Jan 4 17:52:15 EST 2013
I have configured the load tester and it seems to run fine if the number
of unique clients per process is less than 100, but when I increase the
clients to larger number it is giving me connection refused exception,
while running for grinder.threads=3000 I get 1375 as success and 1625
failures. The exception is as follows.
/4/13 5:16:36 PM (thread 814 run 0 test 2): Aborted run due to Java
exception calling TestRunner
Java exception calling TestRunner
File
"/root/idploadtest/trunk/grinder-framework/tests/saml2sso_idp/test.py",
line 54, in executeSSOTest
File
"/root/idploadtest/trunk/grinder-framework/tests/saml2sso_idp/test.py",
line 107, in __call__
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:
327)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImp
l.java:193)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:18
0)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at
sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:584)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:426)
at
sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.
java:142)
at
com.gargoylesoftware.htmlunit.ssl.InsecureSSLProtocolSocketFactory.creat
eSocket(InsecureSSLProtocolSocketFactory.java:82)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:70
7)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:387)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
97)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)
at
com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConne
ction.java:97)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection
(WebClient.java:1430)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1
388)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at
org.python.pycode._pyx0.executeSSOTest$1(/root/idploadtest/trunk/grinder
-framework/tests/saml2sso_idp/test.py:54)
at
org.python.pycode._pyx0.call_function(/root/idploadtest/trunk/grinder-fr
amework/tests/saml2sso_idp/test.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at
net.grinder.engine.process.jython.InstrumentedPyJavaInstanceForPyFunctio
ns.access$401(InstrumentedPyJavaInstanceForPyFunctions.java:38)
Can anyone guide me where to look for, so that larger number of clients
can be handled by the idp ? I am configuring this as last time our
company shifted to saml, the server became non-responsive because of 8K
unique users tried to connect to application simulataneously.
I have already done following steps at IDP for fine tuning
1) Set JAVA_OPTS=-server -Xms2048m -Xmx3072m -XX:MaxPermSize=128m
-XX:+DisableExplicitGC -XX:+UseParallelOldGC -verbose:gc
2) Changed the default in httpd-mpm.confid to follows
<IfModule mpm_prefork_module>
StartServers 10
MinSpareServers 5
MaxSpareServers 20
MaxClients 500
MaxRequestsPerChild 5000
</IfModule>
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130104/aa2ff35d/attachment-0001.html
More information about the users
mailing list