pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maximilian Tyrtania <mty@fischerappelt.de>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: insufficient file descriptors on Mac OS X
Date: Fri, 09 Nov 2007 11:55:44 -0500
Message-ID: <11673.1194627344@sss.pgh.pa.us> (raw)
In-Reply-To: <C35A27A1.2BBAE%mty@fischerappelt.de>
References: <C35A27A1.2BBAE%mty@fischerappelt.de>

Maximilian Tyrtania <mty@fischerappelt.de> writes:
> <%2007-11-09 14:46:42 CETFATAL:  53000: insufficient file descriptors
> available to start server process

This is not a shared-memory problem.

On my Mac, ulimit -n seems to be 256 by default, and you've got
max_connections = 240 so nearly all of those will be eaten by
semaphores.

You could change the ulimit setting, back off max_connections,
or apply this patch:
http://archives.postgresql.org/pgsql-committers/2007-09/msg00399.php

BTW, if you're really hoping to have 240 connections, you're
gonna need to do something about ulimit -u too.

$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) 6144
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 256
pipe size          (512 bytes, -p) 1
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 100
virtual memory        (kbytes, -v) unlimited

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <11673.1194627344@sss.pgh.pa.us>
Permalink:  ../11673.1194627344@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11673.1194627344@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mty@fischerappelt.de
  Subject: Re: insufficient file descriptors on Mac OS X
  In-Reply-To: <11673.1194627344@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox