Hi Alan, sounds good. I'm looking forward to hear from Andrew.
Ragards, Daniel On Mon, Nov 23, 2009 at 3:16 PM, Alan Conway <acon...@redhat.com> wrote: > On 11/23/2009 07:17 AM, Steve Huston wrote: > >> Thanks, Daniel! It looks like the thread created isn't being joined, >> but someone will look into it further. >> > > This sounds like a race condition we've been seeing occasionally where the > Connector thread isn't always joined and therefore leaks some associated > memory. > > I believe Andrew has some work in progress that should fix this. > > > -----Original Message----- >>> From: Daniel Etzold [mailto:detz...@gmail.com] >>> Sent: Monday, November 23, 2009 4:17 AM >>> To: users@qpid.apache.org >>> Subject: Re: memory leak in qpid::client::Connection? >>> >>> >>> Hi Steve, >>> I've created a jira report. >>> https://issues.apache.org/jira/browse/QPID-2214 >>> >>> Thanks, >>> Daniel >>> >>> >>> On Fri, Nov 20, 2009 at 4:23 PM, Steve Huston >>> <shus...@riverace.com> wrote: >>> >>> 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-subscr...@qpid.apache.org >>>> >>>> >>>> >>> >> >> --------------------------------------------------------------------- >> Apache Qpid - AMQP Messaging Implementation >> Project: http://qpid.apache.org >> Use/Interact: mailto:users-subscr...@qpid.apache.org >> >> > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscr...@qpid.apache.org > >