4 Replies Latest reply on Nov 12, 2004 1:01 AM by pvainio

    JBossWS performance issue

    pvainio

      Hi,

      I have a big problem with a webservice on JBossWS. I'm using document/literal style to return an array of ~15000 objects containing about 20 properties each.

      It works, but it takes ~15 minutes to generate the response. Also JBoss requires over 500M memory to complete the request.

      Exactly the same service, same wsdl, implementation etc. works ok with JWSDP1.4 jaxrpc. With jwsdp implementation generated with wsdeploy it takes no more than 2 minutes to complete the request and no extra memory is required.

      Does anyone else has this problem? Is there solution to it? I would like to use JBossWS instead of jaxrpc/wsdeploy.

      I'm just quessing but accoording to JBoss webservice/axis debug logs it looks like Axis is deserializing generated response before handing it out? Should I look the problem (source) more closely, or should I wait until Axis is replaced with JIRA?

      Br,
      Pekka


        • 1. Re: JBossWS performance issue
          thomas.diesler

          This is an interesting benchmark. Can you provide a test deployment?
          Axis always parses the message and records the SAX events, in parallel it builds up an in memory representations of the SAAJ object graph. For your kind of data this is less than ideal, your data proof this point.

          The new JBossWS project will specifically address lazy parsing of messages. The prototype will hopefully be available for JBossWorld.

          Do you have JWSDP deployed in JBoss? If yes, do you want to write a wiki about it?

          Thanks

          • 2. Re: JBossWS performance issue
            aveitas

            Hi Thomas,

            You wrote:

            "The new JBossWS project will specifically address lazy parsing of messages. The prototype will hopefully be available for JBossWorld".

            Will the new JBossWS code base no longer depend on Axis? Is there a roadmap document or any documentation that would help us better understand the new project?

            Thanks,
            Al

            • 3. Re: JBossWS performance issue
              thomas.diesler

              The JBossWS wiki says:


              The JBossWS implementation currently builds on Apache Axis as the underlying web service framework. This dependency is going to be replaced by JBoss' own soap stack. See the JBossWS JIRA project for the current status and TODOs.


              • 4. Re: JBossWS performance issue
                pvainio

                 

                "tdiesler" wrote:
                This is an interesting benchmark. Can you provide a test deployment?


                I can't provide the one I used, but I can create similar one for testing if needed.

                "tdiesler" wrote:
                Axis always parses the message and records the SAX events, in parallel it builds up an in memory representations of the SAAJ object graph.


                I tought it might do something like this. Is there by any change a way (configuration option?) to change this behaviour?

                "tdiesler" wrote:
                Do you have JWSDP deployed in JBoss? If yes, do you want to write a wiki about it?


                I have a webservice generated with JWSDP deployed in JBoss. And yes I can write a wiki about it if needed. There is already tutorial about it http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC.html.
                That tutorial instructs how to create a war archive from your webservice. You should be able to deoploy generated war into any servlet container.

                Thanks,
                Pekka