Trouble Sending Big File
search cancel

Trouble Sending Big File

book

Article ID: 117309

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction



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:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/11-0/reference/troubleshoot-the-gateway/optimize-gateway-for-large-file-uploads.html 

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?

Environment

Release: L7SGA299000-9.2-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU
Component:

Resolution

By default, unless this is a Software Gateway, an OVA (Virtual Appliance) uses 1/2 of the machine's allocated memory in the appliancedefs.sh. 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.