Hi Markus,

Markus Doss schrieb:

I wrote some services which transports image data to a server. I've done this with apache soap. Now I transported a 8 MB tif image to the server and run out of memory. Actually I don't use attachments for the service. I code the image data base64 and sent this data with some additional data to server. The apache soap faq recomment to use axis. Are there any solutions and examples in axis to handle large files for transport to a server. The image data could by much larger than 20 MB.
If you get a java.lang.OutOfMemoryError exception you could try to increase the maximum size of the memory allocation pool of the virtual machine.

See http://java.sun.com/j2se/1.4.1/docs/tooldocs/linux/java.html :


<quote>
-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples:

-Xmx83886080
-Xmx81920k
-Xmx80m
</quote>

Regards,
Elmar

Reply via email to