Posts

Showing posts with the label process

check if some exe program is running on the windows

Image
Clash Royale CLAN TAG #URR8PPP check if some exe program is running on the windows How to check if some .exe program is running (is in process) on Windows? I'm making java application which update one .exe program. So, if that exe program is used by some client, my application ask for closing exe program, and after closing automatically replace .exe file with new one. check this question: How to get a list of current open windows/process with Java? – Renan Sep 25 '13 at 12:51 Questions about general computing are off-topic on Stack Overflow. I suggest you try your luck on Super User –  user2109908 Sep 25 '13 at 12:52 ...

Python process in loop or re-scheduled memory leak

Image
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)...