Re: Number of open files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mark Alliban" <MarkA(at)idnltd(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Number of open files
Date: 2001-02-07 15:56:25
Message-ID: 28409.981561385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mark Alliban" <MarkA(at)idnltd(dot)com> writes:
> I have increased file-max to 16000. However after about 24 hours of running,
> pgsql crashed and errors in the log showed that the system had run out of
> memory. I do not have the exact error message, as I was in a hurry to get
> the system up and running again (it is a live production system). The system
> has 512MB memory and there were 47 ODBC sessions in progress, so I cannot
> believe that the system *really* ran out of memory.

Oh, I could believe that, depending on what your ODBC clients were
doing. 10 meg of working store per backend is not out of line for
complex queries. Have you tried watching with 'top' to see what a
typical backend process size actually is for your workload?

Also, the amount of RAM isn't necessarily the limiting factor here;
what you should have told us is how much swap space you have ...

> Also backends seem to hang around for about a minute after I close the ODBC
> connections. Is this normal?

Seems odd to me too.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brice Ruth 2001-02-07 16:07:55 Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Previous Message Michael Fork 2001-02-07 15:48:23 Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?