Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXhly-00D2Tt-1W for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 14:20:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tXhlw-0014Kg-Kx for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 14:20:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXhlw-0014KX-AO for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 14:20:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXhlu-000MtP-1c for pgsql-general@postgresql.org; Tue, 14 Jan 2025 14:20:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 50EEJrYu679342; Tue, 14 Jan 2025 09:19:53 -0500 From: Tom Lane To: Sri Mrudula Attili cc: pgsql-general@postgresql.org Subject: Re: Postgresql database terminates abruptly with too many open files error In-reply-to: <709d5fa0-85e1-40a2-a6a4-11040f4e5b62@ebi.ac.uk> References: <0af98214-3c2a-43e5-9bbf-ddd79b85ea93@ebi.ac.uk> <709d5fa0-85e1-40a2-a6a4-11040f4e5b62@ebi.ac.uk> Comments: In-reply-to Sri Mrudula Attili message dated "Tue, 14 Jan 2025 12:58:44 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <679340.1736864393.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 14 Jan 2025 09:19:53 -0500 Message-ID: <679341.1736864393@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sri Mrudula Attili 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