Solved

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

Posted on 2013-07-01
4
9,110 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
Comment Utility
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
Comment Utility
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
Comment Utility
'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
Comment Utility
Tks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now