From: | Brian Hirt <bhirt(at)mobygames(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Joe Lester <joe_lester(at)sweetwater(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Increasing Max Connections Mac OS 10.3 |
Date: | 2004-02-10 17:47:32 |
Message-ID: | 33BC595A-5BF1-11D8-8B18-000393D9FD00@mobygames.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joe,
I've run into this on my ibook too. The default number of files is
set very low by default. On my system 10.3.2, it's 256 for the
postgres user. You can raise it to something higher like 2048 with
the ulimit command. i have ulimit -n unlimited in my .bash_profile
ibook:~ root# su - postgres
ibook:~ postgres$ ulimit -a
open files (-n) 256
ibook:~ postgres$ ulimit -n unlimited
ibook:~ postgres$ ulimit -a
open files (-n) 10240
ibook:~ postgres$
regards,
On Feb 10, 2004, at 8:04 AM, Tom Lane wrote:
> Joe Lester <joe_lester(at)sweetwater(dot)com> writes:
>> [ lots of ]
>> 2004-02-10 08:46:01 LOG: out of file descriptors: Too many open
>> files;
>> release and retry
>
> Sounds like you need to reduce max_files_per_process. Also look at
> increasing the kernel's limit on number of open files (I remember
> seeing
> it in sysctl's output yesterday, but I forget what it's called).
>
>> Even though I'm getting these messages in my log, all the queries I
>> send to the server seem to be working.
>
> The Postgres server itself will generally survive this condition
> (because it usually has other open files it can close). However,
> everything else on the system is likely to start falling over :-(.
> You don't want to run with the kernel file table completely full.
>
> I'd suggest setting max_files_per_process to something like 50 to 100,
> and making sure that the kernel's limit is max_files_per_process *
> max_connections plus plenty of slop for the rest of the system.
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-10 17:57:42 | Re: Increasing Max Connections Mac OS 10.3 |
Previous Message | Tom Lane | 2004-02-10 17:42:01 | Re: [GENERAL] dblink - custom datatypes don't work |