Salesforce

Malloc Failure on AIX (Magic xpi 4.13)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Malloc Failure on AIX (Magic xpi 4.13)

Objective

This technical note explains how you can solve a malloc failure on the AIX operating system.

Description

When running Magic xpi programs that use large amounts of BLOBs in memory, or projects with large XML files, you can run into resource problems.

To prevent a resource problem, you can cause existing programs to use AIX’s large or very large address-space models by specifying the maxdata value with the LDR_CNTRL environment variable.

For example, you would use the following command to run the a.out program with 8 segments reserved for the data area:

LDR_CNTRL=MAXDATA=0x80000000 a.out

The command runs the a.out program using the very large address-space model, allowing the program's data size to use up to 8 segments for data.

To solve the a malloc failure on the AIX operating system, run the following command in your command line:

LDR_CNTRL=MAXDATA=0x8000000

For more information, see the following link:

Reference
Attachment 
Attachment