I just tested again with both schedd.query and schedd.xquery (tested on version 8.6.1 and 8.4.11). In both case the memory is increase by 128kb, exactly same behavior as mentioned in original ticket. -Jitendra From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx]
On Behalf Of John M Knoeller schedd.query and schedd.xquery have completely different implementation - so there may be a leak with xquery, but it’s not the SAME leak. -tj From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx]
On Behalf Of Patil, Jitendra Hi, I am trying to verify ‘memory leak in condor_q client’ issue that was fixed in June 2016 : Ticket #5727 -
https://htcondor-wiki.cs.wisc.edu/index.cgi/tktview?tn=5727 But found out that memory leak is still occurring. I have verified that this issue is still occurring on latest stable version 8.6.1 and also on 8.4.11. I used the sample code provided in the ticket to verify the issue: import resource import htcondor import gc schedd = htcondor.Schedd() while True: schedd.xquery() # explicitly run the garbage collector to free up mem not leaked gc.collect() print('mem use: %s (kb)' % resource.getrusage(resource.RUSAGE_SELF).ru_maxrss) Can someone please help if I’m missing something or confirm that fix is not available in the latest stable version? -Jitendra |