camel-cxf producer will use the async invocation by default, It's more
like an issue of CXF client async invocation.
It could be more helpful if you can show us the stack trace or where
the code is blocked.
On Fri Oct 14 16:42:24 2011, xuhb wrote:
Sorry forget to say proxy:
the proxy act as a web service to receive request from client and redirect to
another existing webservice, and send the reponse from existing web-service
back to original client;
here in my test the client is Load Runner;
the rout of proxy is just like:
<route>
<from "cxf:...>
<to "cxf:...>
</route>
----- Original Message -----
From: "xuhb"<[email protected]>
To:<[email protected]>
Sent: Friday, October 14, 2011 3:32 PM
Subject: Concurrent Problem of CXF on tomcat?
Hi:
I build a simple proxy with cxf(2.4.3)& camel(2.8.1) on tomcat, and trying
to test the performance with HP LoadRunner;
the proxy program is build with pay-load model of camel-cxf;
If the concurrent client is only 1, there is nothing wrong, the throughput
capacity is very stable (about 150 hits/second)
If I increasei concurrent clients (etc to 40) , the throughput capacity
doesn't increased, but drop down to a very slow number; (the hits/second is
only serval number);
when concurrent clients is 40, at first the speed of cxf proxy is very fast, but
after a serveral seconds there are serveral "java.net.SocketException: Unexpected
end of file from server" occurs , and then the speed of proxy will drop to very slow;
Tthe camel-cxf will share same cxf-client in multi threads ( I have ask a
question of CXF client concurrents, accoding to CXF FAQ , it is thread safe in
my test usage),
and is there other issues cause such a concurrent problem ?
Thanks for any suggestion;
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang