Hi,

We still havent found a solution to the problem. I increased the max connection 
setting of Apache from default of 150 to 500. Turned off the keepAlive setting. 
The throughput more than doubled, but about 10% of the requests are still 
getting java.net.BindException. I've tried the load tests with Grinder and 
JMeter and get the same problem with both the tools, so it is definitely not 
some bug in the load tool.

The environment is:

Apache 2.0.54 running on Red Hat Enterprise Linux ES release 4 (Nahant)
Two JBoss 4.0.2 instances running on separate machines with Java 1.5.0_05 on 
Red Hat Enterprise Linux ES release 4 (Nahant)

Apache and one JBoss instance are on the same machine.

Any pointer will be helpful. If you're running Apache load balancer with JBoss 
in production, please let me know if you needed to tweak something in Apache or 
JBoss/Tomcat.

The detailed error stack trace is:

java.net.BindException: Address already in use: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.(Unknown Source)
        at java.net.Socket.(Unknown Source)
        at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3264)
        at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2994)
        at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2801)
        at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2593)
        at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1095)
        at net.grinder.plugin.http.HTTPRequest$6.doRequest(HTTPRequest.java:647)
        at 
net.grinder.plugin.http.HTTPRequest$AbstractRequest.getHTTPResponse(HTTPRequest.java:827)
        at net.grinder.plugin.http.HTTPRequest.POST(HTTPRequest.java:644)
        at net.grinder.plugin.http.HTTPRequest.POST(HTTPRequest.java:544)
        at net.grinder.plugin.http.HTTPRequest.POST(HTTPRequest.java:527)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
        at org.python.core.PyMethod.__call__(PyMethod.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.core.PyInstance.invoke(PyInstance.java)
        at 
net.grinder.engine.process.TestPyJavaInstance.access$001(TestPyJavaInstance.java:35)
        at 
net.grinder.engine.process.TestPyJavaInstance$1.call(TestPyJavaInstance.java:67)
        at 
net.grinder.engine.process.ThreadContextImplementation.invokeTest(ThreadContextImplementation.java:155)
        at net.grinder.engine.process.TestData.dispatch(TestData.java:79)
        at 
net.grinder.engine.process.TestPyJavaInstance.dispatch(TestPyJavaInstance.java:48)
        at 
net.grinder.engine.process.TestPyJavaInstance.invoke(TestPyJavaInstance.java:64)
...


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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to