API Gateway 11.1 | Using API Gateway | Define and Manage APIs | Creating an API from Scratch | Handling APIs of larger size
 
Handling APIs of larger size
If you want to create an API file of a large size (for example, files as big as 120 MB), perform the following steps:
1. Navigate to Administration > General > Extended settings and set the following values:
Property
Value
watt.serve.tspace.location
opt/softwareag/tmp
watt.server.tspace.max
2000000000
watt.server.tspace/timeToLive
300000
2. Modify the Java memory settings in the configuration file located at SAGInstallDir/profiles/IS_default/configuration/custom_wrapper.conf and set the following values:
Property
Value
wrapper.java.initmemory
3072
wrapper.java.maxmemory
3072
3. Open <Elastic_Dir>/config/elasticsearch.yml and set the following value:
Property
Value
http.max_content_length
300MB
4. Open SAGInstallDir/IntegrationServer/instances/default/packages/WmAPIGateway/config/resources/elasticsearch/config.properties and set the following value:
Property
Value
pg.gateway.elasticsearch.client.http.response.size
300MB
5. Open <Elastic_Dir>/config/jvm.options and set Xms4g to the following settings:
*Initial heap size.
*Maximum heap size.
6. Restart API Gateway and external Elasticsearch.
This memory, temporary storage, and content length settings are configured to accommodate larger APIs.