Skip to content

[Warning] Memory allocation failed.#

Overview#

This document describes the causes of the [Warning] Memory allocation failed. message and how to resolve it when the Altibase server process cannot allocate the required memory from the operating system.

Version#

All versions of Altibase

Symptom#

The following message is logged in $ALTIBASE_HOME/trc/altibase_boot.log while the Altibase server is running.

[Warning] Memory allocation failed.

In some cases, the following error may also occur.

ERR-01051 Memory allocation failed.

This error may occur while a transaction is being processed or while the Altibase server is starting up or shutting down. When memory allocation fails, new client connections may also fail.

Cause#

The main causes are as follows.

The Process Memory Exceeds the Kernel Parameter Limit#

On HP-UX, kernel parameters can limit the size of the data area that a process can use.

Memory allocation may fail if the Altibase server process requests memory beyond the limit configured by the following kernel parameters.

maxdsiz         # 32-bit process
maxdsiz_64bit   # 64-bit process

Insufficient Available System Memory#

The Altibase server may fail to allocate memory when the system does not have sufficient physical memory or swap space available.

Action#

Check the HP-UX Kernel Parameters#

Run the following command to check the maxdsiz kernel parameters.

/usr/sbin/kctune | grep maxdsiz

Set the values high enough to accommodate the expected memory usage of the Altibase server while considering the amount of physical memory available on the system.

If the kernel parameters need to be changed, consult the system administrator.

Check System Memory Usage#

Use system monitoring tools such as top or glance to check physical memory and swap space usage.

If the available memory is insufficient, reduce memory usage by unnecessary processes or consider adding more system memory.

Check the System Memory Tablespace Usage#

If a CREATE TABLE statement does not specify a tablespace, Altibase creates the table in the default memory tablespace, SYS_TBS_MEM_DATA.

Check whether tables were unintentionally created in a memory tablespace, causing increased memory usage.