Python process in loop or re-scheduled memory leak
Clash Royale CLAN TAG #URR8PPP Python process in loop or re-scheduled memory leak I have a function running inside a dedicated multiprocessing process, which can run endlessly in a loop, re-scheduled itself using threading timer or run only one time. In the first and second case, the memory usage is endlessly leaking, even though I am just updating the references to my variables in the endless loop mode. I use a queue for communication with the main process and pop everything out of it right away from the main process. Here is the function code : def schedule(args, fn, q = None ): isendless = True while isendless: # retrieve from database pd_original_matrice = get_rating(args); # save userID / index correspondance index = pd_original_matrice['CustomerId'].values index = dict( zip(index, list(range(0, len(index))) )) now = dt.now().replace(microsecond=0) # start timer mf = MF(pd_original_matrice.iloc[:,1:].fillna(0)...