axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <...@sosnoski.com>
Subject Re: Performance degradation with 1.1RC1
Date Fri, 02 May 2003 20:20:43 GMT
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14989 on the 
encoding style issue. Also see 
http://marc.theaimsgroup.com/?l=axis-dev&m=103821735424697&w=2 for 
discussion of namespaces on multirefs. In many cases the namespace 
declarations on each multiref are the major cause of bloat, so moving 
these up to the body element would give major benefits.

  - Dennis

Glen Daniels wrote:

> First off, I think the repeating of encodingStyle all over the place 
> is silly - we should just put it on the body.  We used to do this, I 
> think....
>  
> Second, re: multirefs, we designed the serialization system to enable 
> streaming of the output.  As such, you have to assume any object is 
> multiply referenced in SOAP 1.1, since you have to put serializations 
> of multirefs at the top level under the <soap:Body> tag.  Changing 
> this would involve serializing to an intermediate structure like a DOM 
> and then editing particular nodes when multiple references were found 
> - this is some serious work.
>  
> For SOAP 1.2, we can do multiref serializations inline, which means 
> you just have to add an "ID" attribute to each potentially-multiRef 
> object you're encoding - much quicker/better.
>  
> --G
> -----Original Message-----
> *From:* Tom Jordahl [mailto:tomj@macromedia.com]
> *Sent:* Friday, May 02, 2003 11: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'
>     <http://www.w3.org/2001/XMLSchema-instance%27>
>       xmlns:xsd='http://www.w3.org/2001/XMLSchema'
>     <http://www.w3.org/2001/XMLSchema%27>
>       xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
>     <http://schemas.xmlsoap.org/soap/envelope/%27>  
>       xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
>     <http://schemas.xmlsoap.org/soap/encoding/%27>
>      
>     xmlns:n4='http://www.themindelectric.com/package/com.agedwards.soa.model/'
>     <http://www.themindelectric.com/package/com.agedwards.soa.model/%27>>
>       <soap:Body
>         soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
>     <http://schemas.xmlsoap.org/soap/encoding/%27>
>         xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
>     <http://schemas.xmlsoap.org/soap/envelope/%27>>
>         <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/
>     <http://webservices.apache.org/%7Edims/>
>> >
>> > __________________________________
>> > Do you Yahoo!?
>> > The New Yahoo! Search - Faster. Easier. Bingo.
>> > http://search.yahoo.com
>>
>>
>> =====
>> Davanum Srinivas - http://webservices.apache.org/~dims/
>     <http://webservices.apache.org/%7Edims/>
>>
>> __________________________________
>> 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