Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 979EE6346F6 for ; Tue, 23 Jun 2009 05:44:07 -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 27779-01 for ; Tue, 23 Jun 2009 05:43:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mail.postgresql.org (Postfix) with ESMTP id 04C356331C3 for ; Tue, 23 Jun 2009 05:44:03 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 9so1706402ywe.73 for ; Tue, 23 Jun 2009 01:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=DFi7y3DtHqJuATOOEZ1kg0PyTPyxZUb66mcOZlu8Fw4=; b=vf20HXqY0kQhsz1D1pZKvjQFBOb3cnH/IpxZHB+UsNvKDmxen0U+AJH2n2N0rdiE7v Uw78MpKn3ZUyf0GtMRbf8KkgIglmlsDYmgiPdkBK6mSFG1WwJt4tvOR9+IMj5gKS/RDB cQsCx+PIR2s9VM0f6JVxMhFhvmNF7Hi8YKI5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XqOHVoBbp6cRcEXqD7OIammNtRSj3UGexNx/S5lwEnePtbYFv0TsbMKfVtaUdQphQ4 s5C78TFKkhE7l9ThSy1n/tg8+tJRVTWkcYHTRWDth58hn61B6iCaPqdU/SP5jiolD2SY PjketxhaiClMwaTlrOF0yTeZ31IflMjpBT66g= MIME-Version: 1.0 Received: by 10.150.52.10 with SMTP id z10mr13234517ybz.80.1245746643054; Tue, 23 Jun 2009 01:44:03 -0700 (PDT) In-Reply-To: <1245744319.20088.24.camel@tillium.localnet> References: <1245744319.20088.24.camel@tillium.localnet> Date: Tue, 23 Jun 2009 14:14:03 +0530 Message-ID: Subject: Re: Queries very slow and memory consumption too high From: Saurabh Dave To: Craig Ringer Cc: Albe Laurenz , pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=000e0cd6ae9023b02e046cfffeb4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200906/88 X-Sequence-Number: 19752 --000e0cd6ae9023b02e046cfffeb4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit >>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. - 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 > > --000e0cd6ae9023b02e046cfffeb4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >>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 see= ms postgres uses shared memory, and we have 15 connections all taking up ar= ound 35MB as per task manager OR top. We are not able to figure out definit= atively if there is a memory leak.
Help/Clues??? Thanks all for your responses so far.

- Saurabh

On Tue, Jun 23, 2009 at 1:35 PM, Craig Ring= er <cra= ig@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


--000e0cd6ae9023b02e046cfffeb4--