Re: memory leak occur when disconnect database

From: "tanjunhua" <tanjh(at)riso(dot)co(dot)jp>
To: "Craig Ringer" <craig(at)postnewspapers(dot)com(dot)au>
Cc: "Postgres General Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: memory leak occur when disconnect database
Date: 2009-07-21 04:53:23
Message-ID: 069601ca09bf$2d4dfe10$aa1c10ac@RKC.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Because of the three-day break, my response is late.

> Valgrind is a great tool, but you must learn how to identify false
> positives and tell the difference between a leak that matters (say 1kb
> allocated and not freed in a loop that runs once per second) and a leak
> that doesn't.

I get the memory leak scenario not only from Valgrind, but also from the
output of top command.
At first I think the memory leak occur when I disconnect database by
Valgrind, then I write a test sample that just connect and disconnect
database in a infinite loop to check it. after 1 hour performation, 7M
memory is leaked.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message tanjunhua 2009-07-21 05:17:58 Re: memory leak occur when disconnect database
Previous Message Tom Lane 2009-07-21 03:14:22 Re: killing processes