Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 63733 invoked from network); 20 Nov 2009 15:23:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Nov 2009 15:23:46 -0000 Received: (qmail 38243 invoked by uid 500); 20 Nov 2009 15:23:46 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 38187 invoked by uid 500); 20 Nov 2009 15:23:45 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 38176 invoked by uid 99); 20 Nov 2009 15:23:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 15:23:45 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shuston@riverace.com designates 67.214.127.109 as permitted sender) Received: from [67.214.127.109] (HELO riverace.com) (67.214.127.109) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 15:23:40 +0000 Received: from c-98-217-81-155.hsd1.ma.comcast.net ([98.217.81.155] helo=hope) by a2s43.a2hosting.com with esmtpa (Exim 4.69) (envelope-from ) id 1NBVKQ-0001bd-U1 for users@qpid.apache.org; Fri, 20 Nov 2009 10:23:19 -0500 From: "Steve Huston" To: Subject: RE: memory leak in qpid::client::Connection? Date: Fri, 20 Nov 2009 10:23:14 -0500 Organization: Riverace Corporation Message-ID: <792B1F6E76D84E74A4E3706FB829216D@hope> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: Acpp561W/ZVBm4aoQXCF8pZyHwkyBwADVbew In-Reply-To: <685393f10911200544s8b74a5fsd11b025bc3d86c70@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s43.a2hosting.com X-AntiAbuse: Original Domain - qpid.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - riverace.com Hi Daniel, > when executing the code below (connecting and disconnecting to a local > broker without sending any messages) the memory usage > increases constantly > and rapidly. After 10.000 iterations several hundred > megabytes of resident memory are used. Yikes. > When commenting out the lines "connection.open()" and > "close()" the memory usage does not increase. > > So, is there a memory leak in Connection open/close? It appears you may have found one, yes. > int > main(int argc, char** argv) > { > while (1) { > qpid::client::Connection connection; > connection.open("localhost", 5672); > connection.close(); > } > } > > I'm running qpid 0.5 on a Debian Linux with gcc 4.3.3. Could you maybe run your test under valgrind and get a better idea where the leak is? Also, when you get this information, could you please create a jira report for it? (http://issues.apache.org/jira/browse/qpid) Please attach your test progam and valgrind report. Thanks, -Steve -- Steve Huston, Riverace Corporation Total Lifecycle Support for Your Networked Applications http://www.riverace.com --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org