Re: Postgress memory leak with JBoss3.2.6 and large DB - Mailing list pgsql-performance

From Indika Maligaspe
Subject Re: Postgress memory leak with JBoss3.2.6 and large DB
Date
Msg-id 20060904210058.6BAD4ECF@dm21.mta.everyone.net
Whole thread Raw
In response to Re: Postgress memory leak with JBoss3.2.6 and large DB  (Mark Kirkwood <markir@paradise.net.nz>)
List pgsql-performance
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


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: database bloat,non removovable rows, slow query etc... [RESOLVED]
Next
From: "Merlin Moncure"
Date:
Subject: Re: increasing shared buffers: how much should be removed