2008/1/19, xxxxxxxx yyyyyyyy <[EMAIL PROTECTED]>:
>
> Jean-Sebastien,
>
> I was trying to do some tests as well. The quick hack I was looking to do was 
> to modify   Axis2ServiceClient  in the method createServiceClient() .
> From the Axis documentation I planned on adding first these lines :
> MultiThreadedHttpConnectionManager conmgr = new 
> MultiThreadedHttpConnectionManager();
> conmgr.getParams().setDefaultMaxConnectionsPerHost(10);
> HttpClient client = new HttpClient(conmgr);
> configContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, client);
>
> The other dirty hack is to change axis2.xml.


I think that adding an intent per binding base it'll better.
Pay attention to increase setDefaultMaxConnection, because it can result
in a resource exaustion :)
If you increase to 10 connection/hosts what happens if you do
a cycle like this:
CallableReference<HelloComponentService> ref;

/// init the callable reference. Replace it with the code which does it.
for (int i = 0; i < 5000; ++i)
{
ref.getService().syncHello(); // a synchronous method call
}
for (int i = 0; i < 5000; ++i)
{
ref.getService().asyncHello(); // asynchronous method call
}

I ask you because I've tried to increase it two months ago and it
doens't work. Pay attention because you could reintroduce this:
http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200708.mbox/[EMAIL 
PROTECTED]

The other test that you might try is to run a code, adding multiple
calls to differents
services.
Cheers,
Giorgio.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to