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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-21-2006, 11:16 AM
|
#1
|
Member
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320
Rep:
|
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
|
|
|
12-22-2006, 06:15 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
Maybe start by posting kernel version, "sysctl -a | egrep "^(kernel|vm)\."" and your users "ulimit -a".
|
|
|
12-22-2006, 07:09 AM
|
#3
|
Member
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320
Original Poster
Rep:
|
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.
|
|
|
12-22-2006, 07:20 AM
|
#4
|
Member
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700
Rep:
|
This line gives it away right here:
Code:
max user processes (-u) 100
Check out /etc/security/limits.conf
|
|
|
12-22-2006, 05:21 PM
|
#5
|
Member
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320
Original Poster
Rep:
|
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.
|
|
|
02-04-2007, 04:17 AM
|
#6
|
Member
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|