Malloc Failure on AIX (Magic xpi 4.13)
This technical note explains how you can solve a malloc failure on the AIX operating system.
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:
https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.genprogc/lrg_prg_support.htm