Re: Postgresql database terminates abruptly with too many open files error - Mailing list pgsql-general

From Sri Mrudula Attili
Subject Re: Postgresql database terminates abruptly with too many open files error
Date
Msg-id 9b69fcc6-dca1-4671-af00-b250f154fb14@ebi.ac.uk
Whole thread Raw
In response to Re: Postgresql database terminates abruptly with too many open files error  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Postgresql database terminates abruptly with too many open files error
List pgsql-general
Hello Tom,


The max_connections =200 and max_files_per_process =1000 as you mentioned.

So should a max_files_per_process =500 helps?


I could see from the number of connections to the databaseis not 
exceeding 20. But still these 20 are causing all the damage or using up 
all the openfiles quota.


Thanks,

Sri

On 14/01/2025 14:19, Tom Lane wrote:
> Sri Mrudula Attili <sri@ebi.ac.uk> writes:
>>    We have a postgresql VDB(virtual database- Delphix) that keeps
>> terminating due "to too many open files".
> What do you have max_connections set to, and how many actually-live
> server processes are there typically?
>
>> The number of allowed openfiles at OS level are 65000.
> I'm suspecting that you either need to increase that, decrease
> max_files_per_process (which defaults to 1000), or decrease
> max_connections.
>
>             regards, tom lane



pgsql-general by date:

Previous
From: Enrico Schenone
Date:
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16
Next
From: Adrian Klaver
Date:
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16