axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kellogg, Richard" <RKell...@MICROS.COM>
Subject RE: Performance degradation with 1.1RC1
Date Fri, 02 May 2003 16:38:55 GMT
In some informal testing we did here in house, disabling multirefs did make a significant difference
in performance.  This was with Axis 1.1RC2.  
 
I have not actually benchmarked the results though.  We turned this off to make Microsoft
.NET interop easier.
 
Rick Kellogg

-----Original Message-----
From: Volkmann, Mark [mailto:Mark.Volkmann@AGEDWARDS.com]
Sent: Friday, May 02, 2003 12:18 PM
To: 'axis-dev@ws.apache.org'
Cc: Warner, Jack; Burney, Marlon
Subject: RE: Performance degradation with 1.1RC1


Ahh .. that's much shorter and much more readable!
 

Here's what I added to my deploy.wsdd file.
  <globalConfiguration>
    <parameter name="sendMultiRefs" value="false"/>
    <parameter name="sendXsiTypes" value="false"/>
  </globalConfiguration>
 
This turns of multirefs and also xsi types more a more direct comparison with the GLUE message
I included.
 
Here's the new response.
 
<soapenv:Envelope
  xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd=" http://www.w3.org/2001/XMLSchema"
  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <ns1:getFirstHoldingResponse
      soapenv:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="urn:ClientInfo">
      <getFirstHoldingReturn>
        <security xsi:type="ns2:Bond"
          xmlns:ns2=" http://model.soa.agedwards.com">
          <currentSharePrice>43.91</currentSharePrice>
          <name>Florida Power &amp; Light</name>
          <symbol>FPL</symbol>
        </security>
        <shares>75.0</shares>
      </getFirstHoldingReturn>
    </ns1:getFirstHoldingResponse>
  </soapenv:Body>
</soapenv:Envelope>

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com]
Sent: Friday, May 02, 2003 10:58 AM
To: 'axis-dev@ws.apache.org'
Cc: Warner, Jack; Burney, Marlon
Subject: RE: Performance degradation with 1.1RC1



 

A code patch to turn off multiref when there is only a single use would be pretty cool.

Note that you can of course turn off multired on a server-wide basis in the server-config.wsdd.

 

When doing that, how do we compare in message sizes?

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Volkmann, Mark [mailto:Mark.Volkmann@AGEDWARDS.com] 
Sent: Friday, May 02, 2003 11:50 AM
To: 'axis-dev@ws.apache.org'
Cc: Warner, Jack; Burney, Marlon
Subject: RE: Performance degradation with 1.1RC1

 

One thing that I think slows down Axis is response message sizes. 
For the test case I submitted to dims here are the sizes of the response message for different
web service toolkits. 

Axis       232389 bytes 
GLUE        57175 bytes 
WASP        96220 bytes 
WebLogic 8  73708 bytes 

Here's a sample of a small GLUE response with newlines and indentation added for readability.


<soap:Envelope 
  xmlns:xsi=' http://www.w3.org/2001/XMLSchema-instance' 
  xmlns:xsd=' http://www.w3.org/2001/XMLSchema' 
  xmlns:soap=' http://schemas.xmlsoap.org/soap/envelope/'   
  xmlns:soapenc=' http://schemas.xmlsoap.org/soap/encoding/' 
  xmlns:n4=' http://www.themindelectric.com/package/com.agedwards.soa.model/'> 
  <soap:Body 
    soap:encodingStyle=' http://schemas.xmlsoap.org/soap/encoding/' 
    xmlns:soap=' http://schemas.xmlsoap.org/soap/envelope/'> 
    <n:getFirstHoldingResponse xmlns:n='x'> 
      <Result> 
        <security xsi:type='n4:Bond'> 
          <name>Florida Power &amp; Light</name> 
          <symbol>FPL</symbol> 
          <currentSharePrice>43.91</currentSharePrice> 
        </security> 
        <shares>75.0</shares> 
      </Result> 
    </n:getFirstHoldingResponse> 
  </soap:Body> 
</soap:Envelope> 

Here's the same data as respresented in an Axis response. 

<soapenv:Envelope 
  xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/" 
  xmlns:xsd=" http://www.w3.org/2001/XMLSchema" 
  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"> 
  <soapenv:Body> 
    <ns1:getFirstHoldingResponse 
      soapenv:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" 
      xmlns:ns1="urn:ClientInfo"> 
      <getFirstHoldingReturn href="#id0"/> 
    </ns1:getFirstHoldingResponse> 
    <multiRef id="id0" 
      soapenc:root="0" 
      soapenv:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" 
      xsi:type="ns2:Holding" 
      xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" 
      xmlns:ns2=" http://model.soa.agedwards.com"> 
      <security href="#id1"/> 
      <shares xsi:type="xsd:double">75.0</shares> 
    </multiRef> 
    <multiRef id="id1" 
      soapenc:root="0" 
      soapenv:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" 
      xsi:type="ns3:Bond" 
      xmlns:ns3=" http://model.soa.agedwards.com" 
      xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"> 
      <currentSharePrice xsi:type="xsd:double">43.91</currentSharePrice> 
      <name xsi:type="xsd:string">Florida Power &amp; Light</name> 
      <symbol xsi:type="xsd:string">FPL</symbol> 
    </multiRef> 
  </soapenv:Body> 
</soapenv:Envelope> 

Treating everything as a multiRef even if it's only used once is dramatically inflating the
response sizes.  Especially because each multiRef repeats lots of namespace declarations.
 Beyond size concerns, notice how much more human readable the GLUE response compared to the
Axis response.

> -----Original Message----- 
> From: Davanum Srinivas [ mailto:dims@yahoo.com] 
> Sent: Friday, May 02, 2003 9:41 AM 
> To: axis-dev@ws.apache.org 
> Subject: RE: Performance degradation with 1.1RC1 
> 
> 
> Tom, 
> 
> No. I haven't found it yet. 
> 
> Thanks, 
> dims 
> 
> --- Tom Jordahl <tomj@macromedia.com> wrote: 
> > 
> > Hey Dims, 
> > 
> > Do we have any idea what changed between RC1 and RC2 to 
> cause us to need this caching? 
> > 
> > -- 
> > Tom Jordahl 
> > Macromedia Server Development 
> > 
> > -----Original Message----- 
> > From: Davanum Srinivas [ mailto:dims@yahoo.com] 
> > Sent: Thursday, May 01, 2003 9:51 PM 
> > To: Volkmann, Mark 
> > Cc: axis-user@ws.apache.org; axis-dev@ws.apache.org 
> > Subject: RE: Performance degradation with 1.1RC1 
> > 
> > My last check-in today fixed the problem :) :) Please try 
> tonight's build. 
> > 
> > RC 1      :  9.945 seconds 
> > RC 2      : 36.562 seconds 
> > Latest CVS:  9.434 seconds 
> > 
> > Thanks, 
> > dims 
> > 
> > --- "Volkmann, Mark" <Mark.Volkmann@AGEDWARDS.com> wrote: 
> > > I've finally extracted a part of my test application that 
> demonstrates a 
> > > severe performance problem in RC2.  I ran this with the 
> Axis webapp deployed 
> > > in Tomcat 4.1.24 under Windows NT.  With RC1, "ant run" 
> reports 22 seconds. 
> > > With RC2, it reports 81 seconds. 
> > > 
> > > I hope this helps you to isolate the problem.  Good luck! 
> > > 
> > > 
> > > 
> > > 
> ************************************************************** 
> ********************* 
> > > WARNING:  All e-mail sent to and from this address will 
> be received or 
> > > otherwise recorded by the A.G. Edwards corporate e-mail 
> system and is 
> > > subject to archival, monitoring or review by, and/or 
> disclosure to, 
> > > someone other than the recipient. 
> > > 
> ************************************************************** 
> ********************** 
> > > 
> > 
> > > ATTACHMENT part 2 application/octet-stream name=BigResponse.zip 
> > 
> > 
> > 
> > ===== 
> > Davanum Srinivas - http://webservices.apache.org/~dims/ 
> > 
> > __________________________________ 
> > Do you Yahoo!? 
> > The New Yahoo! Search - Faster. Easier. Bingo. 
> > http://search.yahoo.com 
> 
> 
> ===== 
> Davanum Srinivas - http://webservices.apache.org/~dims/ 
> 
> __________________________________ 
> Do you Yahoo!? 
> The New Yahoo! Search - Faster. Easier. Bingo. 
> http://search.yahoo.com 
> 



***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************


Mime
View raw message