Re: Memory leak?

Sean Reifschneider <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
On Sun, Feb 02, 2003 at 11:49:48PM -0500, Billy G. Allie wrote:
>I created the table above and ran the given python code for 60 CPU minutes.
>I did not experience any memory growth.  My memory started out at 5.3MB and 
>stayed there.  Note: the table was empty for this test.

Yeah, the table on my end is empty as well.  I mean, I'm able to
reproduce it with an empty table...

>Does the sample code cause memory growth on all your machines?

I've only run it on two machines.  Let me try another machine real
quick...  I've just tried it on another 7.3 machine and and 8.0 machine,
all similar specs to what I mentioned before, but not machines I had
tested before.  They are both exhibiting memory leaks.  Over 1.5 CPU
minutes I see about 15MB of growth (20MB total), with empty tables.

>I will inspect the code to see if anything obvious stands out.  Given the 
>simplicity of the sample code, it would seem that the leak may be related to 
>the libpq result object.

That's kind of what I'm thinking as well.

Sean
-- 
 Hi, my name's Sean, but my friends call me...  Actually, my friends USUALLY
 e-mail me...  -- Sean Reifschneider, 2000
Sean Reifschneider, Inimitably Superfluous <[email protected]>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.