How about a workaround? If JBoss is reducing keepalive times under load to 5-10ms, that's not much value there at all .. so what happens if we turn off keep alive?

(The proper solution is of course the right thing but this workaround may work to get Eric past this issue.)

Sanjiva.

Asankha C. Perera wrote:
Eric
I can reproduce the problem now on my desktop.. which is good news too :) Thanks for all your help in getting to this point.. will keep you updated on the progress
I have found the problem.. now all we need is a resolution :-) !

Typically we use HTTP 1.1 and keep-alive connections to achieve best performance, and JBoss uses a 20 second timeout for keep-alive connections before the underlying TCP connections are closed. However, under load, JBoss seems to close keep-alive connections at a much much shorter interval like 9ms, 7ms, 5ms or even 4ms!

We recently did a fix to fully clean up all resources used by a connection (Synapse-225 - Pipe leak <https://issues.apache.org/jira/browse/SYNAPSE-225>), and now we have updated the code to close all channels and clean up when a connection is detected as closed. However, due to the above behavior of JBoss, while we are still reading the message, the connection would be closed by JBoss (probably since it finished writing the tiny response), and we would close the stream - and this causes the ClosedChannelException

I wanted to debug the TCP level dealings between the ESB and JBoss, and thus need to get a full TCP dump for this interaction.. but I have been so far unsuccesful in getting JBoss to bind on the actual IP address of a machine - as it always binds on 127.0.0.1.. this prevents me from using tcpdump .. If you know how to get JBoss to run on all IP's of a machine, do let me know.. now that we know the problem, we should be able to figure out a solution

thanks
asankha


------------------------------------------------------------------------

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

--
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
email: [EMAIL PROTECTED]; cell: +1 650 265 8311 | +94 77 787 6880

"Oxygenating the Web Service Platform."

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to