Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 03CB0634E5D for ; Thu, 17 Sep 2009 16:05:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 75661-04 for ; Thu, 17 Sep 2009 19:05:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 31104634C5F for ; Thu, 17 Sep 2009 16:05:29 -0300 (ADT) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id n8HJ5Hf32447; Thu, 17 Sep 2009 12:05:17 -0700 Message-ID: <4AB28867.5050105@hogranch.com> Date: Thu, 17 Sep 2009 12:05:11 -0700 From: John R Pierce User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Angelo Nicolosi CC: pgsql-jdbc@postgresql.org Subject: Re: OOM on large SELECT References: <4AB100D7.60805@opencloud.com> <4AB112C3.1050809@hogranch.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.527 tagged_above=-10 required=5 tests=AWL=0.072, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/26 X-Sequence-Number: 19973 Angelo Nicolosi wrote: > Sorry for the delay of this answer but i was trying to figure out. > However I saw that the memory that the postgres is using is getting > larger step by step. > So it doesn't free it. > After the third query it is already full and one of the thread of the > postgres is killed from the OOM. > When the process is killed the program usually is going to call again > a stored function. > By the way the info that you required me are: I wonder if the work_mem settings in postgresql.conf are too large for this computer? if you're not the postgres administrator, you'll need to work with them to identify this problem. note, btw, 8.4.0 has been superceded by 8.4.1, with a lot of bug fixes. painless inplace upgrade.