[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Memory leak in python bindings?

Hi Scott,

Yes, thanks for reporting it. I should have it fixed in the next release. Here is the ticket associated with this bug:


In the meantime you could apply the patch in the above ticket (once I push it later today), or try Brian's suggestion below.


On 6/13/2016 9:29 PM, Brian Bockelman wrote:
Hi Scott,

Definitely looks like a leak to me.  Thanks for reporting it.

As a potential workaround: do you see the leak go away if you use
schedd.xquery() instead?



On Jun 12, 2016, at 9:53 PM, Scott Leishman <scott.leishman@xxxxxxxxx
<mailto:scott.leishman@xxxxxxxxx>> wrote:


I have a long running python script that queries the scheduler
periodically and noticed the process continually growing in memory
over time.

The following snippet is enough to illustrate the issue on our systems
(running condor v8.4.6):

import resource
import htcondor
schedd = htcondor.Schedd()
while True:
    print('mem use: %s (kb)' %

With no jobs running, I typically see the memory use increase by 128kb
once every 45 or so iterations of the loop.