You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by suril <su...@hotmail.com> on 2011/01/04 14:58:59 UTC
Axis2 stub creation performance issue
I am looking for some help with a performance issue that we are running into
with Axis2.
We have a library that creates a pool of connections to a server. The
connection pool is created using Apache Commons Pool. We are creating an
Axis2 stub instance in the library and using that for the SOAP
communication.
We are running into significant performance problems with the Axis2 stub
object invocation under load.
I had 2 questions on this:
1) Can we re-use the same Axis2 stub instance across threads in our library?
We are using Axis2 1.4 -- we can move to a higher version if needed
2) If this is not possible, then are there any suggestions/tips to optimize
the performance and reduce the time taken for the Axis2 stub object
creation?
Thanks for your help
--
View this message in context: http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
Sent from the Axis - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
Re: Axis2 stub creation performance issue
Posted by Srinath Perera <sr...@wso2.com>.
create the configuration context once, and then pass it to each Stub
when you create the stub (if you are not doing it already), that
should reduce time to create the threads?
--Srinath
On Wed, Jan 5, 2011 at 10:33 AM, Amila Suriarachchi
<am...@gmail.com> wrote:
>
>
> On Tue, Jan 4, 2011 at 7:28 PM, suril <su...@hotmail.com> wrote:
>>
>> I am looking for some help with a performance issue that we are running
>> into
>> with Axis2.
>>
>> We have a library that creates a pool of connections to a server. The
>> connection pool is created using Apache Commons Pool. We are creating an
>> Axis2 stub instance in the library and using that for the SOAP
>> communication.
>>
>> We are running into significant performance problems with the Axis2 stub
>> object invocation under load.
>>
>> I had 2 questions on this:
>> 1) Can we re-use the same Axis2 stub instance across threads in our
>> library?
>> We are using Axis2 1.4 -- we can move to a higher version if needed
>
> you can not use stubs across threads. But you can use Axis2 1.5.4 latest
> version which reuse the connections.
>
> thanks,
> Amila.
>
>>
>> 2) If this is not possible, then are there any suggestions/tips to
>> optimize
>> the performance and reduce the time taken for the Axis2 stub object
>> creation?
>>
>> Thanks for your help
>> --
>> View this message in context:
>> http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>
--
============================
Srinath Perera, Ph.D.
Senior Software Architect, WSO2 Inc.
Visiting Lecturer, University of Moratuwa
Member, Apache Software Foundation
Research Scientist, Lanka Software Foundation
Blog: http://srinathsview.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
Re: Axis2 stub creation performance issue
Posted by Amila Suriarachchi <am...@gmail.com>.
On Tue, Jan 4, 2011 at 7:28 PM, suril <su...@hotmail.com> wrote:
>
> I am looking for some help with a performance issue that we are running
> into
> with Axis2.
>
> We have a library that creates a pool of connections to a server. The
> connection pool is created using Apache Commons Pool. We are creating an
> Axis2 stub instance in the library and using that for the SOAP
> communication.
>
> We are running into significant performance problems with the Axis2 stub
> object invocation under load.
>
> I had 2 questions on this:
> 1) Can we re-use the same Axis2 stub instance across threads in our
> library?
> We are using Axis2 1.4 -- we can move to a higher version if needed
>
you can not use stubs across threads. But you can use Axis2 1.5.4 latest
version which reuse the connections.
thanks,
Amila.
> 2) If this is not possible, then are there any suggestions/tips to optimize
> the performance and reduce the time taken for the Axis2 stub object
> creation?
>
> Thanks for your help
> --
> View this message in context:
> http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: Axis2 stub creation performance issue
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
Hi Ruwan,
On Tue, Jan 4, 2011 at 8:50 PM, Ruwan Linton <ru...@gmail.com> wrote:
> First of all you need to post to the java-dev@axis.apache.org in the
> future.
>
> Regarding the performance issues, can you please be concrete about the
> performance issues?
>
> Also it should be OK to share the same stub instance.
>
I don't think so. Axis2 ServiceClient API (which I believe is used within
generated stubs) is not meant to be shared by multiple threads. The javadocs
clearly states: "Note that these instances are not intended to be
thread-safe".
However it is ok to reuse the same stub for multiple invocations by the same
thread. In that case we should call cleanupTransports method after each
invocation.
Thanks,
Hiranya
>
> Thanks,
> Ruwan
>
>
> On Tue, Jan 4, 2011 at 7:28 PM, suril <su...@hotmail.com> wrote:
>
>>
>> I am looking for some help with a performance issue that we are running
>> into
>> with Axis2.
>>
>> We have a library that creates a pool of connections to a server. The
>> connection pool is created using Apache Commons Pool. We are creating an
>> Axis2 stub instance in the library and using that for the SOAP
>> communication.
>>
>> We are running into significant performance problems with the Axis2 stub
>> object invocation under load.
>>
>> I had 2 questions on this:
>> 1) Can we re-use the same Axis2 stub instance across threads in our
>> library?
>> We are using Axis2 1.4 -- we can move to a higher version if needed
>> 2) If this is not possible, then are there any suggestions/tips to
>> optimize
>> the performance and reduce the time taken for the Axis2 stub object
>> creation?
>>
>> Thanks for your help
>> --
>> View this message in context:
>> http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>
>>
>
>
> --
> Ruwan Linton
> Software Architect & Product Manager
> WSO2 Inc.; http://wso2.org
>
> Lean . Enterprise . Middleware
>
> phone: +1 408 754 7388 ext 51789
> email: ruwan@wso2.com; cell: +94 77 341 3097
> blog: http://blog.ruwan.org
> linkedin: http://www.linkedin.com/in/ruwanlinton
> google: http://www.google.com/profiles/ruwan.linton
> tweet: http://twitter.com/ruwanlinton
>
--
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
Re: Axis2 stub creation performance issue
Posted by Ruwan Linton <ru...@gmail.com>.
First of all you need to post to the java-dev@axis.apache.org in the future.
Regarding the performance issues, can you please be concrete about the
performance issues?
Also it should be OK to share the same stub instance.
Thanks,
Ruwan
On Tue, Jan 4, 2011 at 7:28 PM, suril <su...@hotmail.com> wrote:
>
> I am looking for some help with a performance issue that we are running
> into
> with Axis2.
>
> We have a library that creates a pool of connections to a server. The
> connection pool is created using Apache Commons Pool. We are creating an
> Axis2 stub instance in the library and using that for the SOAP
> communication.
>
> We are running into significant performance problems with the Axis2 stub
> object invocation under load.
>
> I had 2 questions on this:
> 1) Can we re-use the same Axis2 stub instance across threads in our
> library?
> We are using Axis2 1.4 -- we can move to a higher version if needed
> 2) If this is not possible, then are there any suggestions/tips to optimize
> the performance and reduce the time taken for the Axis2 stub object
> creation?
>
> Thanks for your help
> --
> View this message in context:
> http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>
--
Ruwan Linton
Software Architect & Product Manager
WSO2 Inc.; http://wso2.org
Lean . Enterprise . Middleware
phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton