1847283 Members
2297 Online
110263 Solutions
New Discussion

Re: not enough memory...

 
Telia BackOffice
Valued Contributor

not enough memory...

I have this one program, then I run it I get the following error:

The fork function failed. There is not enough memory available.

could it be a nproc problem? or something like that.
4 REPLIES 4
Sebastian Galeski_1
Trusted Contributor

Re: not enough memory...

hi
check in glance utilization of kernel parameter. You can increase:
nproc and maxuprc

regards seba
Fragon
Trusted Contributor

Re: not enough memory...

How much is your physical memory? If not too much,you can try tuning these kernel parameters:
1. Set swapmen_on = 0 , disable pseudo-swap (I have ever seen it will take effect sometimes, but I myself don't know why.)
2.Set dbc_max_pct and dbc_min_pct to 0,this will free some memory which is used as buffer cache.

Good luck!
Ceesjan van Hattum
Esteemed Contributor

Re: not enough memory...

Do not only look at nproc, but better have a look at MAXSWAPCHUNKS. Adding swapspace doesn't require a reboot.
In addition, you could also add pseudoswap (swapmem_on=1).

Regards,
Ceesjan
Trond Haugen
Honored Contributor

Re: not enough memory...

No your problem is not nproc.
You should be looking at "memory"; RAM, swap (swapinfo -t), maxdsiz, maxssiz.
does you program suppler have any recommendations for kernel parameters?

Regards,
Trond
Regards,
Trond Haugen
LinkedIn