Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-04-2003, 04:59 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
fork: resource temporarily unavailable ???

For some reason whenever I run almost any command, I am getting the error "fork: resource temporarily unavailable". I can't work out why. When I first log in, I am able to do "ls" on my home dir, but if I do cd /, then ls, I get that error message. Same goes with any other commands. Anyone know what the problem could be?
Old 10-04-2003, 05:15 AM   #2
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
this might help..
Old 03-19-2011, 08:25 AM   #3
LQ Newbie
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Solved for Ubuntu 10.10

After using Bastillia under Ubuntu 10.10 I've got hundreds of that message: "fork: resource temporarily unavailable".
I found out that this bloody program adds some limits to system resources
usage. I went to /etc/secutity/limits.conf and deleted:

# prevent core dumps
* hard core 0

#limit user processes per user to 150
* soft nproc 100
* hard nproc 150

Back up!Back up!Back up!Your system.
Old 06-21-2011, 09:00 AM   #4
LQ Newbie
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Smile fixing error: fork: Resource temporarily unavailable

Just had an issue and solved it on red hat 5 getting error: fork: Resource temporarily unavailable

Research we did found this:
1. cron run scripts do not fully logon as the user. So if ulimit commands are issued in /etc/profile they will not get run when cron scripts run.

2. In dealing with user oracle on a machine with many databases, we found the ulimit -u to cause the issue. We had 800 oracle processes running (shows with ps -ef|grep oracle|wc -l), but a bash shell would work ok with ulimit -u 2020 but would fail with ulimit -u 2010.

Turns out process limits must be a misnomer. Must include threads also. This command shows a number closer to our experience of what ulimit -u needed: ps -eLf|grep oracle|egrep -v root|wc -l

So the bottom line is, make sure your ulimit -u is set high enough when dealing with workloads such as oracle.

Last edited by lsattle; 06-21-2011 at 10:09 AM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speedtouch 330, connect(0.35): Resource temporarily unavailable the_freshmaker Linux - Hardware 0 11-06-2005 12:16 PM
Siocsifflags: Resource Temporarily Unavailable camapa Linux - Networking 0 09-24-2005 07:58 PM
Clonning data, fifo/pipe/tee problem : Resource temporarily unavailable rmarco Linux - General 2 05-05-2005 11:15 AM
cfork failed: Resource temporarily unavailable x2000koh Linux - Networking 0 05-11-2003 10:07 PM
SIOCSIFFLAGS: Resource temporarily unavailable bleef Linux - Networking 2 05-14-2001 10:54 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration