Operating System - HP-UX
1753716 Members
4721 Online
108799 Solutions
New Discussion юеВ

Re: brk() failed with operating system error 12 (Not enough space)

 
SOLVED
Go to solution

brk() failed with operating system error 12 (Not enough space)

Running HP-UX 11.0 and Ingres 2.5. I am receiving an error message brk() failed with operating system error 12 (Not enough space).
4 REPLIES 4
MANOJ SRIVASTAVA
Honored Contributor

Re: brk() failed with operating system error 12 (Not enough space)

Hi Elliot

HOw does dmesg look ? Does it report any files systems full , also bdf would give you some clues. It looks like some tmp directory is getting filled , please check or may be release space.


Manoj Srivastava
James R. Ferguson
Acclaimed Contributor
Solution

Re: brk() failed with operating system error 12 (Not enough space)

Hi:

Error-12 is a not enough memory error. You man need to configure more swapspace and or set 'swapmem_on=1'. Check you swap utilization with 'swapinfo -ta'. It is also possible that your appication may need more stack space. You may need to increase the kernel 'maxdsiz'.

...JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: brk() failed with operating system error 12 (Not enough space)

Also the list of errors is in /usr/include/sys/errno.h where in system Error 12 (ENOMEM) indicates that there is not enough core ? Your problem looks like nothing to do with the filesystems space.

You may try rebooting the system.

Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor

Re: brk() failed with operating system error 12 (Not enough space)

Hi,

ENOMEM (12) is the classic errno set by malloc(), calloc(), or one of its cousins. It is a request for more dynamic memory allocation. These functions in turn call brk(). Dollars to donuts maxdsiz is too small. You need to increase the value and rebuild the kernel. You may also need to increase swap but this is more typical of maxdsiz. Of course, the other thing that can cause this is a request for a huge amount of memory because of a programming error or a bad applications parameter or environment variable.

Clay
If it ain't broke, I can fix that.