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 1tXh8T-00CwTV-QV for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 13:39:14 +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 1tXh8S-000czz-Fg for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 13:39:12 +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 1tXh8S-000czr-4e for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 13:39:12 +0000 Received: from mx1.purehosting.services ([81.16.19.30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXh8O-000MZy-2C for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 13:39:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=frank.uvena.de; s=mail; t=1736861947; bh=ocBT2IedDWnVYDHfteDCCqpbHEow1u8xztSttMhpY6Y=; h=Subject:To:References:From:In-Reply-To:From; b=W5m68d971GmN/JSoRbbtAaNq/okB6g9K0XUjGVhOhax5djgEKKBfIUES3GSFqZ9AV IdkOYUgqmRtrMvxx5IL8VNXm7IO4DjJY8PAd+hNCjiD2Octyh+3d721V+YXqvKaJCb 8nXk7dkUMAq/SS7Yprm4VfwGXobWFp4ZZFz8eleyOSKPA2JZJfg3gJY2YoXUBRF49f PpV29a+G8WzU/8rItjTRinkCTAYU/wSp7+YSGnmtY6Tj3X/FbYOIqhN0BhR6UbHqgc 8auxNA1ZjcHPaPbxj6K4h1xPL8O8oCuPPSbVovOLiswt0j7oLcAbqRLVRQ3wbl6TVv teQ2dm7CCej+Q== Message-ID: <83e42564-ae78-4876-9525-d1f48843c532@frank.uvena.de> Date: Tue, 14 Jan 2025 14:39:06 +0100 MIME-Version: 1.0 Subject: Re: Postgresql database terminates abruptly with too many open files error To: pgsql-general@lists.postgresql.org References: <0af98214-3c2a-43e5-9bbf-ddd79b85ea93@ebi.ac.uk> <709d5fa0-85e1-40a2-a6a4-11040f4e5b62@ebi.ac.uk> Content-Language: en-GB From: Frank Lanitz In-Reply-To: <709d5fa0-85e1-40a2-a6a4-11040f4e5b62@ebi.ac.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Have you checked something like lsof to see open file descriptors to see? Cheers, frank Am 14.01.25 um 13:58 schrieb Sri Mrudula Attili: > Hello Team, > >  We have a postgresql VDB(virtual database- Delphix) that keeps terminating due "to too many open files". > > Below are few alerts that we could see from the postgresql.log > > > < 2025-01-14 11:37:20.724 GMT >LOG:  out of file descriptors: Too many open files in system; release and retry > > < 2025-01-14 11:37:20.724 GMT >FATAL:  epoll_create1 failed: Too many open files in system > > > The number of allowed openfiles at OS level are 65000. even then we see these all these being utilised and causing the database to terminate. > > > Is there a way we could avoid this. > > > Thanks, > > Sri > > >