1834903 Members
2792 Online
110071 Solutions
New Discussion

Any command report this:

 
SOLVED
Go to solution
Daniel Caçador
Regular Advisor

Any command report this:

:/# bdf

sh: There is not enough memory available now.

sh: There is not enough memory available now.

sh: There is not enough memory available now.

sh: There is not enough memory available now.

sh: There is not enough memory available now.

sh: There is not enough memory available now.

sh: The fork function failed. Too many processes already exist.

:/#

Why?
6 REPLIES 6
Tiziano Contorno _
Valued Contributor

Re: Any command report this:

You reached max number of processes per user.

kernel tunable is "nproc".
Are you root?
Peter Godron
Honored Contributor

Re: Any command report this:

Daniel,
you have too many processes on the system or under your userid.
ulimit -a should show the limits.
Reduce the number of processes and/or increase available resource and you should be ok.
Daniel Caçador
Regular Advisor

Re: Any command report this:

How I make this changes?

Thank's!
Peter Godron
Honored Contributor
Solution

Re: Any command report this:

Dan iel,
ulimit -m unlimited
will reset your memory allowance, to the authorised limit.
However, chances are you have too many processes running.
Issue:
ps | wc -l Gives you the count of your processes.

'kill ' unwanted jobs, which will free up resources.
Tiziano Contorno _
Valued Contributor

Re: Any command report this:

kmtune -lq nproc # to get nproc
ps -ef | wc -l # to count running processes

or

Check that you ACTUALLY capped max processes:
#sar -v 1 1

HP-UX hostname B.11.11 U 9000/800 04/03/06

18:22:39 text-sz ov proc-sz ov inod-sz ov file-sz ov
18:22:40 N/A N/A 145/1280 0 988/8192 0 1316/8202 0

In this example I have 145 out of 1280 possible running processes.

To change parameter start SAM, change the value (if you change maxusers you also change nproc and some other "useful" parameters on 11.11).

SAM -> Kernel Configuration -> Configurable Parameters
select nproc (or maxusers) with space bar, then Actions -> Modify Configurable Parameter, change it then again actions -> process new kernel and reboot!

regards.
Daniel Caçador
Regular Advisor

Re: Any command report this:

Thank's to all for help-me!

Regards