LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-21-2006, 11:16 AM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
vfork: resource temporarily unavailable


Hello,
I've been getting this error off and on at random intervals for almost the entire time I've been using Linux (~2 years). It occurs almost without fail when I launch a Java app, like Azureus, for example. I've read that it is most likely due to a filled process table but I can't see how this could be since Linux is used on servers. I'd imagine the number of processes allowed to run simultaneously to be nearly unlimited.


Has anyone else experienced this problem? I'd like to finally diagnose it.
Thanks
 
Old 12-22-2006, 06:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Maybe start by posting kernel version, "sysctl -a | egrep "^(kernel|vm)\."" and your users "ulimit -a".
 
Old 12-22-2006, 07:09 AM   #3
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Linux 2.6.19 #12 Mon Dec 11 23:44:25 EST 2006 i686 GNU/Linux

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


I usually have about 140-70 processes running when this happens, although it's possible I could have less and I'd get the same error. I'm guessing 'max user processes' is what I should be looking at.
 
Old 12-22-2006, 07:20 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
This line gives it away right here:

Code:
max user processes (-u) 100
Check out /etc/security/limits.conf
 
Old 12-22-2006, 05:21 PM   #5
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Ah, thanks so much. In limits.conf, the hard setting was 150 so I changed that to 250. Processes ramped up to 173, which seems promising. However, with Azureus, I still get the vfork error message but it seems to be complaining solely about lack of memory even though I'm only using 70% of total. I never use Azureus but this same thing has happened with other Java apps.

Last edited by verbose; 12-22-2006 at 05:24 PM.
 
Old 02-04-2007, 04:17 AM   #6
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
This error has been rearing its ugly head again recently. It does from time to time. This time I'm trying to run an application with Wine, which always seems to cause problems. I added a max user processes line to limits.conf as suggested in this thread. That didn't seem to do any good. I've also explicitly told ulimit to accept new processes up to 250 and, yet, the error keeps coming.

'ps -ef|wc -l' says I currently have 130 processes running... well below the 250 I've specified.
 
  


Reply


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
fork: resource temporarily unavailable ??? str8edge Linux - General 3 06-21-2011 09:00 AM
xcdroast - resource temporarily unavailable mwildam Linux - Newbie 4 09-24-2006 04:28 PM
Siocsifflags: Resource Temporarily Unavailable camapa Linux - Networking 0 09-24-2005 07:58 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 PM.

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