X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 712ED52EC8 for ; Thu, 11 Aug 2005 16:56:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80402-10 for ; Thu, 11 Aug 2005 19:56:40 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E08C552D3A for ; Thu, 11 Aug 2005 16:56:35 -0300 (ADT) Received: (qmail 1836 invoked from network); 11 Aug 2005 19:56:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 11 Aug 2005 19:56:36 -0000 In-Reply-To: <52EF20B2E3209443BC37736D00C3C1380422A3A0@EXADV1.host.magwien.gv.at> References: <52EF20B2E3209443BC37736D00C3C1380422A3A0@EXADV1.host.magwien.gv.at> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Memory leak in 8.0 JDBC driver? Date: Thu, 11 Aug 2005 15:56:37 -0400 To: Albe Laurenz X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=[AWL=0.014] X-Spam-Level: X-Archive-Number: 200508/85 X-Sequence-Number: 13654 Please send us the program so that we can see why, or replicate the problem. Dave On 11-Aug-05, at 1:07 PM, Albe Laurenz wrote: > Before I file a bug, I'd like to ask if the problem is known or if I > have done anything wrong. > > I am running a database stress test against a PostgreSQL 8.0.3 > database > on a Linux machine. > The test program runs on a Windows 2000 client via JDBC, it starts > several threads, each > of which opens a database connection and issues random statements > against the database > until the program is interrupted. > > After about 2 hours, the program always dies with an OutOfMemoryError. > > I have tried both JRE 1.4.2_02 and 1.5.0_04 from Sun. > I would suspect a programming error on my side, except the same > program > on the same machine > runs for days without problems if I run it against other databases > (Derby, Firebird, MySql, > Oracle, MaxDB). > > I have got the JDBC3 driver 8.0 Build 312 from > http://jdbc.postgresql.org/download.html, > and I have also tried downloading and building from source. > No matter what I do, memory runs out. > > - Should I report this as a bug? > - I did not want to spam the list with the source of my test program, > but I'd happily do > so if you think it would help. > - Do you have any hints as to how I could debug the problem myself? > Can > you recommend a > memory profiler? > > Thank you, > Laurenz Albe > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > >