Re: insufficient file descriptors on Mac OS X

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maximilian Tyrtania <mty(at)fischerappelt(dot)de>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: insufficient file descriptors on Mac OS X
Date: 2007-11-09 16:55:44
Message-ID: 11673.1194627344@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Maximilian Tyrtania <mty(at)fischerappelt(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mija Lee 2007-11-09 17:07:26 Re: Has anyone attended PostgreSql classes
Previous Message Joshua D. Drake 2007-11-09 16:12:02 Re: Has anyone attended PostgreSql classes