Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PostgreSQL shows "could not fork new process"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sergioag
n00b
n00b


Joined: 08 Nov 2007
Posts: 20

PostPosted: Mon Oct 19, 2009 5:11 pm    Post subject: PostgreSQL shows "could not fork new process" Reply with quote

Hi

I'm running a server that uses PostgreSQL 8.2.7 (dev-db/postgresql-8.2.7) for use with the Adempiere ERP. All is working fine except that whenever the "postgres" user has 30 running processes (which with Adempiere's connection pooling means a maxium of 3 users) is starts to refuse new connections and the log shows this errors:
Code:
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork new process for connection: Resource temporarily unavailable
LOG:  could not fork autovacuum process: Resource temporarily unavailable
LOG:  could not fork autovacuum process: Resource temporarily unavailable


I have tried setting nproc in /etc/security/limits.conf, recompiling postgresql with and without the "pam" use flag. Running "ulimit -u" shows 400, but still no luck.

Any ideas?

Thanks

Sergio Aguayo
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Wed Oct 28, 2009 12:48 am    Post subject: Re: PostgreSQL shows "could not fork new process" Reply with quote

Any output from "dmesg" or in /var/log/messages?

Cheers
Jon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum