pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Indika Maligaspe <indika@rezgateway.com>
To: 'Mark Kirkwood' <markir@paradise.net.nz>
To: pgsql-performance@postgresql.org
Subject: Re: Postgress memory leak with JBoss3.2.6 and large DB
Date: Tue, 5 Sep 2006 09:32:04 +0530
Message-ID: <20060904210058.6BAD4ECF@dm21.mta.everyone.net> (raw)
In-Reply-To: <44FBA332.8020104@paradise.net.nz>

Hi Guys,
	We found the issue regarding our memory leak. It was the query. It
seams were using functions with fetch cursors on large data sets and the
cursors were not getting closed properly. Hence the memory was building up.
So I guess this was an application error. In fact we bought the Query memory
from 1.4 GB to 2 MB.........

Thanks for all the help guys. Because by reading all your comments I was
able to understand a lot about Postgres memory settings. 


K.Indika Maligaspe

-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Mark Kirkwood
Sent: Monday, September 04, 2006 9:23 AM
To: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Postgress memory leak with JBoss3.2.6 and large DB

Indika Maligaspe wrote:
> Hey guys,
> 
>   We are running a Linux 2.4 enterprise edition box with 6GB of RAM, 
> **Postgres 8.0.3**. (snippage)
> 

You might want to consider upgrading to 8.0.8 (see below), and seeing if
the problem still persists.


> As you can see the postmaster users are taking way over the memory that 
> should be taken.
>   
> 
> If any of you can give us some pointers we would really appreciate that 
> and thanks in advance.
> 

I notice that there are a number of fixes for memory leaks since 8.0.3 -
8.0.4 and 8.0.8 is where I see 'em specifically (reading release notes
for 8.0.8). So you may be experiencing an issue that is fixed in the
current 8.0 releases! I recommend upgrading to 8.0.8.

You didn't say what your HW was, but if you are on a 32-bit platform,
then a 2.4 kernel when you have >2G ram may leak noticeable amounts of
memory itself...

Cheers

Mark


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org




view thread (5+ messages)

Message-ID: <20060904210058.6BAD4ECF@dm21.mta.everyone.net>
Permalink:  ../20060904210058.6BAD4ECF@dm21.mta.everyone.net/
Also on:    postgresql.org/message-id/20060904210058.6BAD4ECF@dm21.mta.everyone.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: indika@rezgateway.com, markir@paradise.net.nz
  Subject: Re: Postgress memory leak with JBoss3.2.6 and large DB
  In-Reply-To: <20060904210058.6BAD4ECF@dm21.mta.everyone.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox