Re: Errors: Too many open files

From: Jan Wieck <janwieck(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ken <mailinglists(at)creason(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Errors: Too many open files
Date: 2001-12-07 18:08:42
Message-ID: 200112071808.fB7I8gf02154@saturn.jw.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Ken <mailinglists(at)creason(dot)com> writes:
> > During busy hours, Postgres and Apache are reporting
> > errors that there are too many open files, and sometimes
> > Postgres will crash.
>
> You need to raise the kernel's file table size (most Unixen call
> this kernel parameter NFILE; also NINODE might be interesting).
> It's a system-wide limit, not a per-process limit.
>
> > echo "8192" > /proc/sys/fs/file-max
> > (did not seem to make a difference)
>
> This *looks* plausible, but I'm not familiar enough with Linux to know
> if that's the right incantation or not. Also, did you check to see
> what the original value is? I'm not sure that 8k is more than the
> default ...

It is the right place. IIRC the default is either 4 or 8K. I
usually set it to 32K or even more (depends on the number of
tables and number of backends I expect).

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ken 2001-12-07 18:12:29 Re: Errors: Too many open files
Previous Message Jan Wieck 2001-12-07 18:05:42 Re: Trigger problem