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?
Thanks,
Brian
On Jun 12, 2016, at 9:53 PM, Scott Leishman <scott.leishman@xxxxxxxxx
<mailto:scott.leishman@xxxxxxxxx>> wrote:
Hi,
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:
schedd.query()
print('mem use: %s (kb)' %
resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)
With no jobs running, I typically see the memory use increase by 128kb
once every 45 or so iterations of the loop.