Eric
My first very basic test with a long running request was successful. I
could see all the log-statements Asankha put into the
shutdownGracefully method. A few times "Waiting for a maximum of
another..." and then finally the "Graceful shutdown request completed
in 186 seconds". Fine!
Good to hear..
I then wanted to test the same feature under load. With a (too) small
time to force an immediate shutdown and a sufficient time to proccess
all current requests.
...
Caused by: java.nio.channels.AsynchronousCloseException
...
Any ideas? After that I moved the ESB to another machine. Because I
was running soapUI, JBoss and the ESB on the same physical machine.
Same problem. Next I changed the Java version for the ESB, from JDK 6
Update 6 to JDK 5 Update 14, same problem. If I start only a few
requests manually, I don't see this exception, but only a few seconds
after the "load test" I see this problem. No CPU load on the machines.
Only a few requests per seconds.
Both are Windows machines. I used the snapshot-version, v5, which
Ruwan provided. I will rerun the test with the 1.6 version, to see if
there is a difference.
Since your production environment is Linux, I would not recommend trying
to isolate the above problem in Windows. One basic difference with the
NIO platform is that we read using channels, and then need to switch
into Java streams for the rest of the processing, and we use Pipe's in
Unix, and Simulated (i.e. Buffered) pipes in Windows. Also, its good to
stick to JDK 1.5.0_14 wherever possible.
If you put the ESB into maintenance during the 'load test', it may have
caused some problem to the client as new connections would have been
refused by the ESB.. I am not sure I understand exactly how you did the
test. I would try to reproduce this tomorrow, and thought of using the
SimpleStockQuote service, the Java ApacheBench client and the ESB.. and
putting the ESB into graceful shutdown? Is this what you tried as well?
asankha
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev