Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C2AF463519E for ; Tue, 23 Jun 2009 07:13:09 -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 52544-04 for ; Tue, 23 Jun 2009 07:13:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mail.postgresql.org (Postfix) with ESMTP id 57D5463519C for ; Tue, 23 Jun 2009 07:13:08 -0300 (ADT) Received: by qw-out-2122.google.com with SMTP id 8so1765318qwh.61 for ; Tue, 23 Jun 2009 03:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=9mJpPgxl+zf+WBHCMweaT/MPz48aZQt418pJwyZCNyc=; b=q/4Z3zdHo+xAV/EdW8uR/efldfBtFzZDkJPfS+c4V9EAo/WyrtoZv62IaHhA663Zab HBrIqDa2QH4v97VCutiBTYLzSTeT6zvmYj+JuubLQGkgS5RvpKpMOoJVbfFkoTMrJ3KL XJq5bYVA5EJE+KM1QfwYwyT9TfH2nnroQHAls= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=WFluGP43RQo+YhqT2sQyaKuFeuCDVphdNH7HyZSJZg7OxxO3DRcz52b7naIJ71llrQ 4bX+l1BxQxuhK4SwEYIOzjkSlqAZwqnBdKbHQevaNIXNh3E1yWT0FbA2c/LopqyFFFM6 2ygNwS/JvTydEacanbsvpEa0cAhS0odvd79js= MIME-Version: 1.0 Received: by 10.229.80.78 with SMTP id s14mr1270007qck.101.1245751986621; Tue, 23 Jun 2009 03:13:06 -0700 (PDT) In-Reply-To: References: <1245744319.20088.24.camel@tillium.localnet> Date: Tue, 23 Jun 2009 06:13:06 -0400 X-Google-Sender-Auth: 432b8621196a8fa4 Message-ID: <491f66a50906230313ja128291k1363095bcef6ae18@mail.gmail.com> Subject: Re: Queries very slow and memory consumption too high From: Dave Cramer To: Saurabh Dave Cc: Craig Ringer , Albe Laurenz , pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001636426d4da40ded046d013c52 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.078 tagged_above=0 required=5 tests=AWL=0.077, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200906/91 X-Sequence-Number: 19755 --001636426d4da40ded046d013c52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Jun 23, 2009 at 4:44 AM, Saurabh Dave wrote: > >>If your problem is something that develops over time, one thing > >>you could watch out for are resource leaks, most prominently > >>memory leaks. > > What is the recommended way to do that? It seems postgres uses shared > memory, and we have 15 connections all taking up around 35MB as per task > manager OR top. We are not able to figure out definitatively if there is a > memory leak. > Help/Clues??? Thanks all for your responses so far. > This also suggests that you have not tuned pg. 35M shared memory is not very much. You should look at tuning the installation. Dave > > - Saurabh > > > > On Tue, Jun 23, 2009 at 1:35 PM, Craig Ringer > wrote: > >> On Tue, 2009-06-23 at 09:38 +0200, Albe Laurenz wrote: >> >> > Moving to 8.3.7 (what is 8.3.7.1?), on the other hand, is certainly >> > a good thing. >> >> Probably a Linux distro packaging thing, or a Windows installer >> revision. On my Ubuntu 9.04 box for example, `dpkg -l postgresql-8.3' >> reports Pg's version as 8.3.7-1 . The -1 is the Debian package revision, >> but people may not know that. >> >> -- >> Craig Ringer >> >> > --001636426d4da40ded046d013c52 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Jun 23, 2009 at 4:44 AM, Saurabh= Dave <saurab= hdave@gmail.com> wrote:
>>If your problem is something that develops over t= ime, one thing
>>you could watch out for are resource leaks, most prominently
>>memory leaks.

What is the recommended way to do that? = It seems postgres uses shared memory, and we have 15 connections all taking= up around 35MB as per task manager OR top. We are not able to figure out d= efinitatively if there is a memory leak.
Help/Clues??? Thanks all for your responses so far.

This also suggests that you have not tuned= pg. 35M shared memory is not very much. You should look at tuning the inst= allation.

Dave

- Saurabh



On Tue, Jun 23, 2009 at 1:35 PM, Cra= ig Ringer <craig@postnewspapers.com.au> wrote:
On Tue, 2009= -06-23 at 09:38 +0200, Albe Laurenz wrote:

> Moving to 8.3.7 (what is 8.3.7.1?), on the other hand, is certainly > a good thing.

Probably a Linux distro packaging thing, or a Windows installer
revision. On my Ubuntu 9.04 box for example, `dpkg -l postgresql-8.3' reports Pg's version as 8.3.7-1 . The -1 is the Debian package revision= ,
but people may not know that.

--
Craig Ringer



--001636426d4da40ded046d013c52--