Informix Error -11061: Memory allocation failure.
Cause and resolution
Memory allocation failure.
This Informix CLI error code is the same as SQLSTATE value S1001. The following functions can return this error code: all Informix CLI functions except SQLError(), SQLFreeConnect(), and SQLFreeEnv().
The driver or driver manager cannot allocate memory for the connection handle. Try to reduce the number of processes currently running or provide more memory.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11061 fires when the driver or driver manager can't allocate memory for the connection
handle — per the official guidance, this is the same as SQLSTATE value S1001, returnable by
essentially all Informix CLI functions except SQLError(), SQLFreeConnect(), and
SQLFreeEnv().
- Insufficient system memory to allocate the connection handle, per the official guidance — the direct, only cause.
Solutions / Resolution
- Reduce the number of processes currently running, or provide more memory, per the official guidance.
Examples
Checking system memory
$ free -h
Diagnostic Checks
- Check system memory availability, and reduce concurrent process load if memory is tight.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11061 in this set yet.
The driver couldn't allocate memory for the connection handle — check system memory and reduce concurrent process load.