[jboss-user] [Performance Tuning] - JBoss4.2.2GA Cluster - SocketException: socket closed error

JAGGEE do-not-reply at jboss.com
Wed Aug 19 07:32:01 EDT 2009

We are having a cluster configured JBoss server as follows. 

Three nodes are available in the Cluster and the DBServer as well as Load balancer are available on a separate server.

For Load balancer we are using Apache 2 with mod_jk. We have used Jboss Messaging instead of JBoss MQ. We have followed the insstructions using this page http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.3.GA/html/installation.html

We are trying to run a Jmeter script which will search a table and retrieve the data and from the search result a single data will
be viewed and then the application will be logged out. The display page of a particular record will contain around 100 fields.

Now when we are trying to run the script, we are getting the "SocketException: socket closed" in the server console. we are running for 50 concurrent users.

Please find the attached Server configuration file(which is setup in the present scenario)

JMeter Setup:
Following are the setup that are deployed in the Jmeter. 

a) 3 Jmeter clients are used for 50 concurrent users(25 users in each client).
b) Ramp up time is set as 5 for each client.
c) Guassian Random timer is used in between the each requests in the JMeter script.
d) Both Xms and Xmx is set to 1024m in all the JMeter clients.

Software Setup:
All the three Cluster nodes are having the same setup.

OS: Windows 2003 Server EE
Application Server: JBoss 4.2.2 GA (Community Edition) 
WebServer: Embedded Tomcat
Database: Oracle 10g Release2 (Patch10.2.0.4)
Java: Sun JDK 1.6 Update 11
Apache: Apache HTTP Server 2.0.63
Tomcat Connector: mod_jk 1.2.28

Hardware Setup:
CPU: IntelCore2XeonRProcessーE5405×1
Memory: 4GB

Other Configuration :

<IfModule mpm_winnt.c>
ThreadsPerChild 600
MaxRequestsPerChild 0

Exception :

java.net.SocketException: socket closed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:291)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:522)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
	at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: socket closed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
	at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
	at java.net.URLConnection.getContentLength(Unknown Source)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:261)
	... 6 more

Please let us know what might be the problem and any solutions offered to improve the perfomance of Apache/mod_jk/tomcat/Jboss will be of great thanks.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250362#4250362

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250362

More information about the jboss-user mailing list