Trouble Sending Big File

Document ID : KB000117309
Last Modified Date : 07/11/2018
Show Technical Document Details
We are trying to send a big file (200MB) using a web service protected by the Gateway but it keeps failing due to a Java heap space issue. We did all the suggestion outlined in the link below: 

Is it possible to stream the file? Could we do streaming to limit the memory utilization, using the "Route via HTTP(S)" and "Configure Message Streaming" assertions?
By default, unless this is a Software Gateway, an OVA (Virtual Appliance) uses 1/2 of the machine's allocated memory in the If you are using the default image which only has 2GB in VMWare, the Java heap would take up to 1GB, which is extremely small.

For production readiness or large files, you should ensure your machine has at least 8 or 16GB of RAM. With the 9.x versions of the Gateway, by default, the server should take 1/2 of the available RAM.
Additional Information:
For more information about allocating memory for large files, see Optimize Gateway for Large File Uploads.