Topic
  • 2 replies
  • Latest Post - ‏2011-10-25T18:32:08Z by SystemAdmin
SystemAdmin
SystemAdmin
2768 Posts

Pinned topic IBM Webservices returning huge java object

‏2011-10-24T19:10:38Z |
Hi All,

We are facing issue with webservice method returning a java array object of 3000 elements.System is getting Outofmemory and timeout errors.

Details:
JAX RPC Webservices using Axis2 and IBM implemention

Can anyone please suggest how to handle huga java objects using webservices.
Thanks,
Chandu
Updated on 2011-10-25T18:32:08Z at 2011-10-25T18:32:08Z by SystemAdmin
  • seohulu
    seohulu
    1 Post

    Re: IBM Webservices returning huge java object

    ‏2011-10-24T21:25:08Z  
    did you try to increase the heapsize of Axis2?edit the bin/axis2server.sh file

    change
    java -classpath "$AXIS2...
    into
    java -Xms256m -Xmx4g -classpath "$AXIS2...
    Acoolme is an Online Marketing Software Platform And Social Community
  • SystemAdmin
    SystemAdmin
    2768 Posts

    Re: IBM Webservices returning huge java object

    ‏2011-10-25T18:32:08Z  
    • seohulu
    • ‏2011-10-24T21:25:08Z
    did you try to increase the heapsize of Axis2?edit the bin/axis2server.sh file

    change
    java -classpath "$AXIS2...
    into
    java -Xms256m -Xmx4g -classpath "$AXIS2...
    Acoolme is an Online Marketing Software Platform And Social Community
    Thanks for the response.

    WebService is created in WSAD:
    We have created the webservice with bottom up approach in WSAD5 which returns Array of Java Objects using wsdl4j.

    Webservice Client code is generated in RAD7:
    The client stubs are generated from WSDL in RAD7 using Apache Axis 1.3 WSDL2Java emitter.
    When a webservice method is invoked which returns 5000+java array objects, then out of memory error is thrown from the client side ,due to Serilaize/DeSerialize issue.

    The setting which was mentioned above,can you please let me know where to apply it or is it applicable in my case.