You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Felix Dierich <f....@planungsgemeinschaft.de> on 2004/03/11 16:12:11 UTC
AxisClient performance issue
Hello Axis users!
I have developed a rather large project with Apache Axis and liked Axis
very much so far (with the occasional problem of missing documentation).
I have a performance problem with my client applications though: The
first call to the web service takes almost two seconds on rather fast
machines. The following calls take 100-200 ms which is perfectly OK, but
the clients mostly only make one call and take too long for that.
I have done a little profiling and tracked down the time consumption to
the constructor of org.apache.axis.client.AxisClient, which takes over a
second (with different VMs).
The relevant portion of my code is:
[...]
-> Service service = new Service(); // this takes very long <-
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(axisUrl);
call.setUsername(httpAuthUsername);
call.setPassword(httpAuthPassword);
[...]
I have searched a little on the web and in the newsgroups, but have not
found a solution.
Is there any way to speed up the AxisClient? Have you had similar
experiences?
Thanks for your help in advance
Best regards
- Felix
Re: AxisClient performance issue
Posted by Jay D <ta...@yahoo.com>.
Hello,
Would caching the service object help? I am facing a similar issue. I am thinking of caching the "PortType" object so that the binding operation is done only once.
Any inputs from the Group on caching the port Type?
Regards
jay
Felix Dierich <f....@planungsgemeinschaft.de> wrote:
Hello Axis users!
I have developed a rather large project with Apache Axis and liked Axis
very much so far (with the occasional problem of missing documentation).
I have a performance problem with my client applications though: The
first call to the web service takes almost two seconds on rather fast
machines. The following calls take 100-200 ms which is perfectly OK, but
the clients mostly only make one call and take too long for that.
I have done a little profiling and tracked down the time consumption to
the constructor of org.apache.axis.client.AxisClient, which takes over a
second (with different VMs).
The relevant portion of my code is:
[...]
-> Service service = new Service(); // this takes very long <-
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(axisUrl);
call.setUsername(httpAuthUsername);
call.setPassword(httpAuthPassword);
[...]
I have searched a little on the web and in the newsgroups, but have not
found a solution.
Is there any way to speed up the AxisClient? Have you had similar
experiences?
Thanks for your help in advance
Best regards
- Felix
---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster.