Axis 1.4 Larg Attachments out of Memory
I have been struggling with large attachment processing for some time using Axis 1.4. My client is trying to send up to 500 megabyte files to my webservice and I have overcome most hurdles to get this accomplished including client and server side timeout modifications, memory allocation, disk space accommodations, etc... I have finally found a way to send these attachments, but it will only work when I send them while in Netbeans 6.7.1.
To make it quick, when I include the axis-ant.jar file to my classpath the memory usage remains stable and very low, about ~10 megabytes, and the attachment is successfull. When I leave this file out of my classpath everything compiles and runs, but at the time my client actually makes the call to the webservice (datahandler already setup) the memory usage jumps from ~10 megabytes to 1 gigabyte in a few short seconds.
The inclusion of the axis-ant.jar file, and why this works, is a bit of a mystery to me. Furthermore, I wonder why it only works when running in the Netbeans IDE. When I run this from the command line and actually use the -cp parameter to specify my classpath including all the appropriate files it will always throw a Java heap space OutOfMemoryError error.
Has anyone encountered this and is there any suggested solution?
I do not have an option of Axis 2 or Spring-WS on this project and must remain on Axis 1.4 for now.
NOTE: Small files up to 100 megabytes have always been successfull.