WebFaction
Community site: login faq

I'm having problems with my account ssh. It was working fine, but now whenever I try to do anything in Terminal I get an error message that says: -bash: fork: Resource temporarily unavailable

I can change directories, but I can't ls or restart my apache server.

What's going on?

asked 05 Feb '11, 23:55

Karen McNeil
16246
accept rate: 0%


Hi, These errors occur when your processes have surpassed the limit of simultaneous open files set for your account.

You can use "kill -9 -1" to kill all the processes and start them one by one again.

Hope that helps!

permanent link

answered 05 Feb '11, 23:59

neeravk
1.5k3412
accept rate: 41%

edited 06 Feb '11, 00:15

Great, that worked. Thank you!

permanent link

answered 06 Feb '11, 00:13

Karen McNeil
16246
accept rate: 0%

One question: when you say "simultaneous open files set for your account" how is that calculated? is it the total number of files an application has cause apache keeps that in memory maybe?

I just got that error and would like to know how to debug it more precisely..

thanks, m

permanent link

answered 20 Nov '13, 17:09

mike
737
accept rate: 0%

It's exactly what it sounds like: the total number of files that your account has in use at a given time. You can see the files by running /usr/sbin/lsof -u $USER.

(21 Nov '13, 10:37) seanf

Thanks! one more question though: how does that relate to processes/threads? (apologies in advance if the question is naive)

(22 Nov '13, 05:25) mike

Generally, the more processes you're running, the more files you will have open. There's no direct N:N relation, it just depends on what the process is doing. If a particular process relies on a lot of different files, then it will have a lot of files open.

(22 Nov '13, 12:50) seanf

I see, many thanks.

(24 Nov '13, 16:14) mike
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×103

question asked: 05 Feb '11, 23:55

question was seen: 12,044 times

last updated: 24 Nov '13, 16:14

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM