Solved

RedHat REHL 6 - -bash: fork: retry: Resource temporarily unavailable

Posted on 2013-07-01
4
9,311 Views
Last Modified: 2013-07-04
Hi,

I keep getting this error message while runnins some basic commands:

-bash: fork: retry: Resource temporarily unavailable

I have tried to check the ulimit of the user and it seems ok..

ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 238128
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


> ps -ef | wc -l
176


Any idea on why this is happening?

Tks,
jaoo
0
Comment
Question by:joaotelles
  • 2
4 Comments
 

Author Comment

by:joaotelles
ID: 39291631
I have raised the max user processes to 2048 and the problem seem to be gone...

The question now is: How do I make this change permanent for my user?

I used ulimit -u 2048... but this will not be permanent...

Tks,
Joao
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39292439
Edit /etc/security/limits.conf and add or change the soft limit for user process:

user               soft     nproc            2048

"Soft" limit is the value set at login.

Since you were able to raise the limit by "ulimit -u" there's obviously no need to adjust the "hard" limit (the value up to which the limit can be raised by the user with "ulimit -u").
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39293576
'ulimit' is a shell command that changes only the shell windows you are in. To change the soft limit permanently, you need to update limits.conf as suggested by wmp and run ulimit -Sn.
0
 

Author Closing Comment

by:joaotelles
ID: 39300858
Tks.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchange 2010 unable to mount DB due to corruption 11 110
Video Streaming 6 72
ignore other .htaccess 2 43
Linux Desktop suggestion for Dell Inspiron 3043 13 31
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question