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 "Shmuel Weiss (Exchange)" <sw...@CableMatrix.com> on 2007/06/21 10:54:30 UTC
AXIS2 bad Performance with SOAP requests
Hi,
I have created a Soap Client based on my WSDL with the AXIS2 wsdl2java.
I am calling to the function:
Stub.myFunc();
But it takes few seconds before receiving a response.
I have tested My Soap Server with JMETER sending Soap Request I got ~300
tps,
I have tested My Soap Server with my own client using Axis1.4 , and I
got ~160tps,
Now with Axis2 sending Soap Request to my server and I am getting ~0.2
tps, ????? something wrong is happening..
Do you know what ??
Thanks.
Weiss Shmuel
CMX inc.
RE: AXIS2 bad Performance with SOAP requests
Posted by Shmuel Weiss <sw...@cablematrix.com>.
That is my project + cmxBgpSoapInterface.wsdl.
The Java main is src\BgpSoapClient\BgpSoapClientMain.java
Thanks,
-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com]
Sent: Thursday, June 21, 2007 4:54 PM
To: sweiss@cablematrix.com
Cc: axis-dev@ws.apache.org
Subject: Re: AXIS2 bad Performance with SOAP requests
Shmuel,
something's fishy. Can you please create a JIRA and upload your wsdl/schema
etc?
thanks,
dims
On 6/21/07, Shmuel Weiss <sw...@cablematrix.com> wrote:
>
>
>
>
> That is my code, It looks like the Stub doesn't close the connection
> immediately after the response.. something like this..
>
>
>
> UpdateCommunityReqDocument request = new
> UpdateCommunityReqDocument();
>
>
>
> CommunitySubscribers commSubs = new
> CommunitySubscribers();
>
> commSubs.addSubcribers(object);
>
> commSubs.setCommunityID(1233);
>
>
>
> request.addCommunitySubscribers(commSubs);
>
> request.setSessionID(3);
>
> CmxSoapServiceStub bgpStub;
>
> try {
>
> ConfigurationContext configurationContext =
> new ConfigurationContext;
>
> bgpStub = new
> CmxSoapServiceStub(configurationContext ,
> "http://10.10.0.153:8123/");
>
>
>
>
>
> for (int i = 0; i < 100; i++) {
>
> try{
>
> System.out.println("Send request
> number : "+i);
>
> UpdateCommunityRsp rsp =
> bgpStub.UpdateCommunityOp(request);
>
>
>
> }catch (AxisFault e) {
>
> // TODO Auto-generated catch
> block
>
> e.printStackTrace();
>
> }
>
> }
>
>
>
> } catch (RemoteException e) {
>
> // TODO Auto-generated catch block
>
> e.printStackTrace();
>
> } catch (ErrorException e) {
>
> // TODO Auto-generated catch block
>
> e.printStackTrace();
>
>
> }
>
>
>
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Thursday, June 21, 2007 4:41 PM
> To: axis-dev@ws.apache.org
> Subject: Re: AXIS2 bad Performance with SOAP requests
>
>
>
> Can you please post the client code? are you creating a new stub for
>
> each invocation?
>
>
>
> thanks,
>
> dims
>
>
>
> On 6/21/07, Shmuel Weiss (Exchange) <sw...@cablematrix.com> wrote:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I have created a Soap Client based on my WSDL with the AXIS2 wsdl2java.
>
> >
>
> > I am calling to the function:
>
> >
>
> >
>
> >
>
> > Stub.myFunc();
>
> >
>
> >
>
> >
>
> > But it takes few seconds before receiving a response.
>
> >
>
> >
>
> >
>
> > I have tested My Soap Server with JMETER sending Soap Request I got ~300
>
> > tps,
>
> >
>
> > I have tested My Soap Server with my own client using Axis1.4 , and I
got
>
> > ~160tps,
>
> >
>
> > Now with Axis2 sending Soap Request to my server and I am getting ~0.2
> tps,
>
> > ????? something wrong is happening..
>
> >
>
> >
>
> >
>
> > Do you know what ??
>
> >
>
> >
>
> >
>
> > Thanks.
>
> >
>
> >
>
> >
>
> > Weiss Shmuel
>
> >
>
> > CMX inc.
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
> --
>
> Davanum Srinivas :: http://davanum.wordpress.com
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>
> For additional commands, e-mail: axis-dev-help@ws.apache.org
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: AXIS2 bad Performance with SOAP requests
Posted by Davanum Srinivas <da...@gmail.com>.
Shmuel,
something's fishy. Can you please create a JIRA and upload your wsdl/schema etc?
thanks,
dims
On 6/21/07, Shmuel Weiss <sw...@cablematrix.com> wrote:
>
>
>
>
> That is my code, It looks like the Stub doesn't close the connection
> immediately after the response.. something like this..
>
>
>
> UpdateCommunityReqDocument request = new
> UpdateCommunityReqDocument();
>
>
>
> CommunitySubscribers commSubs = new
> CommunitySubscribers();
>
> commSubs.addSubcribers(object);
>
> commSubs.setCommunityID(1233);
>
>
>
> request.addCommunitySubscribers(commSubs);
>
> request.setSessionID(3);
>
> CmxSoapServiceStub bgpStub;
>
> try {
>
> ConfigurationContext configurationContext =
> new ConfigurationContext;
>
> bgpStub = new
> CmxSoapServiceStub(configurationContext ,
> "http://10.10.0.153:8123/");
>
>
>
>
>
> for (int i = 0; i < 100; i++) {
>
> try{
>
> System.out.println("Send request
> number : "+i);
>
> UpdateCommunityRsp rsp =
> bgpStub.UpdateCommunityOp(request);
>
>
>
> }catch (AxisFault e) {
>
> // TODO Auto-generated catch
> block
>
> e.printStackTrace();
>
> }
>
> }
>
>
>
> } catch (RemoteException e) {
>
> // TODO Auto-generated catch block
>
> e.printStackTrace();
>
> } catch (ErrorException e) {
>
> // TODO Auto-generated catch block
>
> e.printStackTrace();
>
>
> }
>
>
>
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Thursday, June 21, 2007 4:41 PM
> To: axis-dev@ws.apache.org
> Subject: Re: AXIS2 bad Performance with SOAP requests
>
>
>
> Can you please post the client code? are you creating a new stub for
>
> each invocation?
>
>
>
> thanks,
>
> dims
>
>
>
> On 6/21/07, Shmuel Weiss (Exchange) <sw...@cablematrix.com> wrote:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I have created a Soap Client based on my WSDL with the AXIS2 wsdl2java.
>
> >
>
> > I am calling to the function:
>
> >
>
> >
>
> >
>
> > Stub.myFunc();
>
> >
>
> >
>
> >
>
> > But it takes few seconds before receiving a response.
>
> >
>
> >
>
> >
>
> > I have tested My Soap Server with JMETER sending Soap Request I got ~300
>
> > tps,
>
> >
>
> > I have tested My Soap Server with my own client using Axis1.4 , and I got
>
> > ~160tps,
>
> >
>
> > Now with Axis2 sending Soap Request to my server and I am getting ~0.2
> tps,
>
> > ????? something wrong is happening..
>
> >
>
> >
>
> >
>
> > Do you know what ??
>
> >
>
> >
>
> >
>
> > Thanks.
>
> >
>
> >
>
> >
>
> > Weiss Shmuel
>
> >
>
> > CMX inc.
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
> --
>
> Davanum Srinivas :: http://davanum.wordpress.com
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>
> For additional commands, e-mail: axis-dev-help@ws.apache.org
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
RE: AXIS2 bad Performance with SOAP requests
Posted by Shmuel Weiss <sw...@cablematrix.com>.
That is my code, It looks like the Stub doesn't close the connection
immediately after the response.. something like this..
UpdateCommunityReqDocument request = new
UpdateCommunityReqDocument();
CommunitySubscribers commSubs = new
CommunitySubscribers();
commSubs.addSubcribers(object);
commSubs.setCommunityID(1233);
request.addCommunitySubscribers(commSubs);
request.setSessionID(3);
CmxSoapServiceStub bgpStub;
try {
ConfigurationContext configurationContext =
new ConfigurationContext;
bgpStub = new
CmxSoapServiceStub(configurationContext , "http://10.10.0.153:8123/");
for (int i = 0; i < 100; i++) {
try{
System.out.println("Send request
number : "+i);
UpdateCommunityRsp rsp =
bgpStub.UpdateCommunityOp(request);
}catch (AxisFault e) {
// TODO Auto-generated catch
block
e.printStackTrace();
}
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ErrorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com]
Sent: Thursday, June 21, 2007 4:41 PM
To: axis-dev@ws.apache.org
Subject: Re: AXIS2 bad Performance with SOAP requests
Can you please post the client code? are you creating a new stub for
each invocation?
thanks,
dims
On 6/21/07, Shmuel Weiss (Exchange) <sw...@cablematrix.com> wrote:
>
>
>
>
>
>
> Hi,
>
>
>
> I have created a Soap Client based on my WSDL with the AXIS2 wsdl2java.
>
> I am calling to the function:
>
>
>
> Stub.myFunc();
>
>
>
> But it takes few seconds before receiving a response.
>
>
>
> I have tested My Soap Server with JMETER sending Soap Request I got ~300
> tps,
>
> I have tested My Soap Server with my own client using Axis1.4 , and I got
> ~160tps,
>
> Now with Axis2 sending Soap Request to my server and I am getting ~0.2
tps,
> ????? something wrong is happening..
>
>
>
> Do you know what ??
>
>
>
> Thanks.
>
>
>
> Weiss Shmuel
>
> CMX inc.
>
>
>
>
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: AXIS2 bad Performance with SOAP requests
Posted by Davanum Srinivas <da...@gmail.com>.
Can you please post the client code? are you creating a new stub for
each invocation?
thanks,
dims
On 6/21/07, Shmuel Weiss (Exchange) <sw...@cablematrix.com> wrote:
>
>
>
>
>
>
> Hi,
>
>
>
> I have created a Soap Client based on my WSDL with the AXIS2 wsdl2java.
>
> I am calling to the function:
>
>
>
> Stub.myFunc();
>
>
>
> But it takes few seconds before receiving a response.
>
>
>
> I have tested My Soap Server with JMETER sending Soap Request I got ~300
> tps,
>
> I have tested My Soap Server with my own client using Axis1.4 , and I got
> ~160tps,
>
> Now with Axis2 sending Soap Request to my server and I am getting ~0.2 tps,
> ????? something wrong is happening..
>
>
>
> Do you know what ??
>
>
>
> Thanks.
>
>
>
> Weiss Shmuel
>
> CMX inc.
>
>
>
>
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org