Try OpenEdge Now
skip to main content
Administration
Web Services Adapter Administration : Configuring a Web Services Adapter Installation : Tuning the Java container to handle large Web service messages
 

Tuning the Java container to handle large Web service messages

If your Web service attempts to send a large amount of data to a client (for example, 10 MB in a single SOAP message), the Java container can fail to send the SOAP response message for the client request, effectively causing the Web service to hang. To solve or prevent this problem, you can increase the size of the memory allocation pool in the Java virtual machine (JVM) for the Java servlet container that runs the WSA.
To increase this allocation pool, set the -Xmxsize JVM startup option to a higher value. For example, you might set the value to 512 MB by specifying this option as -Xmx512m.
For more information on this option and JVM memory management, see the documentation on tuning garbage collection with the JVM available at the Java Web site (http://Java.sun.com).