dbTalk Databases Forums  

Resource temporarily unavailable

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Resource temporarily unavailable in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben-Nes Michael
 
Posts: n/a

Default Resource temporarily unavailable - 10-27-2004 , 08:24 AM






Hi everyone

From time to time i get the following error:
could not fork new process for connection: Resource temporarily unavailable

im using Postgres 7.4.5, with kernel 2.6.2

my conf is:

max_connections = 400

and system is:

www3:/etc/postgresql# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 256
virtual memory (kbytes, -v) unlimited

im totaly bogus, any ideas ?

Thanks
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
Fax: 972-4-6990098
http://www.canaan.net.il
--------------------------

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: Resource temporarily unavailable - 10-27-2004 , 10:29 AM






"Ben-Nes Michael" <miki (AT) canaan (DOT) co.il> writes:
Quote:
From time to time i get the following error:
could not fork new process for connection: Resource temporarily unavailable
This generally means that the kernel has run out of memory.

Quote:
my conf is:
max_connections = 400
Perhaps that is overly optimistic for your available hardware.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
  #3  
Old   
Russell Smith
 
Posts: n/a

Default Re: Resource temporarily unavailable - 10-30-2004 , 01:21 AM



Quote:
max_connections = 400

www3:/etc/postgresql# ulimit -a
max user processes (-u) 256

im totaly bogus, any ideas ?

Well, your allowing postgres to have 400 connection which is at least 400 processes if not a few more.
And you are ulimiting the postgres user to 256 processes. So the kernel says out of process space for that user.

Regards

Russell Smith

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
  #4  
Old   
Ben-Nes Michael
 
Posts: n/a

Default Re: Resource temporarily unavailable - 10-31-2004 , 11:48 PM



Quote:
max_connections = 400

www3:/etc/postgresql# ulimit -a
max user processes (-u) 256

im totaly bogus, any ideas ?


Well, your allowing postgres to have 400 connection which is at least 400
processes if not a few more.
And you are ulimiting the postgres user to 256 processes. So the kernel
says out of process space for that user.

Its the default values. can any one hint me where to change this ?

Quote:
Regards

Russell Smith

--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
Fax: 972-4-6990098
http://www.canaan.net.il
--------------------------


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.