Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id EBAAB63694F for ; Wed, 16 Sep 2009 12:15:36 -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 03619-05-3 for ; Wed, 16 Sep 2009 15:15:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id B64D96351CA for ; Wed, 16 Sep 2009 12:14:41 -0300 (ADT) Received: from 122-57-44-76.jetstream.xtra.co.nz ([122.57.44.76] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MnwDJ-00078e-QK; Thu, 17 Sep 2009 03:14:33 +1200 Message-ID: <4AB100D7.60805@opencloud.com> Date: Thu, 17 Sep 2009 03:14:31 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Angelo Nicolosi CC: pgsql-jdbc@postgresql.org Subject: Re: OOM on large SELECT References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/20 X-Sequence-Number: 19967 Angelo Nicolosi wrote: > The dmesg command says: > > Out of memory: Killed process 22592 (postgres). If you are getting OOM-kills from the kernel, that usually means you have system-wide memory exhaustion. > I wrote some C-Language functions, added on a database [...] Since the size of a JVM is roughly constant, I would guess that the problem actually lies in your C code. Alternatively your system just doesn't have enough virtual memory configured to do whatever it is you're trying to do. Add more swap. Either way, it doesn't look like a JDBC driver problem based on the information you have given. -O