X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CA51DD1B524 for ; Thu, 6 Nov 2003 22:53:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 71619-05 for ; Thu, 6 Nov 2003 18:53:18 -0400 (AST) Received: from water.oasis.net.au (water.oasis.net.au [210.8.139.2]) by svr1.postgresql.org (Postfix) with ESMTP id 45F0FD1BB60 for ; Thu, 6 Nov 2003 18:53:14 -0400 (AST) Received: from oasis.net.au (guardian [210.8.139.5]) by water.oasis.net.au (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id JAA31743 for ; Fri, 7 Nov 2003 09:25:56 +1000 X-Authentication-Warning: water.oasis.net.au: Host guardian [210.8.139.5] claimed to be oasis.net.au Message-ID: <3FAAD297.7030406@oasis.net.au> Date: Fri, 07 Nov 2003 09:00:39 +1000 From: Rudi Starcevic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Process Files References: <3FA9E266.7090800@oasis.net.au> <19349.1068130129@sss.pgh.pa.us> In-Reply-To: <19349.1068130129@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/106 X-Sequence-Number: 11094 Thanks Tom, >> Hm, that's a rather odd error code, but I suppose it must mean that you >> have run out of kernel memory for file descriptor slots or inodes. Yep, after checking with the co-location techs the limit of open file on my Virtual Server is 2479. They've upped the limit to 3718 for me. This server is running serveral servers which all need to share the limited amount of kernel memory allocated to my Virtual setup. I want to power about a dozen Postgres driven web application on this machine so I have running: Postgresql,Apache,FTP,Bind,Sendmail with PHP. >> Note that you could also attack this by increasing the kernel filetable size In this case, Virtual Server, I'm not able to alter Kernel settings. >> max_files_per_process Doh ! Sorry I should have looked first. Many thanks Best Regards Rudi. Tom Lane wrote: >Rudi Starcevic writes: > > >>ERROR: _mdfd_getrelnfd: cannot open relation virtualusertable: Cannot >>allocate memory >> >> > >Hm, that's a rather odd error code, but I suppose it must mean that you >have run out of kernel memory for file descriptor slots or inodes. > > > >>I'd like to try limiting the amount of files per process. >>Is there an option I can configure to do this ?? >> >> > >max_files_per_process. If you don't have it you need a newer version of >Postgres. > >Note that you could also attack this by increasing the kernel filetable >size; I forget exactly how to do that in Linux, but it is possible. > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 4: Don't 'kill -9' the postmaster > > >