IBM Support

Using REST API's in high concurrency may result in error

Troubleshooting


Problem

The API Connect version 5 Developer Portal REST API's are not designed for high concurrency and will throw 500 error if executed in high concurrency.

Symptom

If a user is trying to use the rest API's in high concurrency it can result in 500 response code and failure errors like the following observed in the file /var/log/cmc.out:

"Could not write to a temporary file. (SQL Code: -264, SQL State: IX000) | ISAM error: no free disk space (SQL Code: -131, SQL State: IX000)" AND

SEVERE [T-43520] [com.ibm.apimgmt.exception.APIGenericException$Serializer.serialize] Error(5c66dc16e4b002aa62ef03a8), Http-Code(500)

Cause

The internal database is set up for 125 connections max, and each REST API Call causes a connection to the Database to write. If a combination of internal load on the server and REST API calls exceeds this threshold, REST API calls may fail and errors thrown

Resolving The Problem

Submit REST API Calls in smaller batches or issue time delays to help the server be able to process the active calls before issuing more

Document Location

Worldwide

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Component":"","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 July 2021

UID

ibm10883598