The program is a standard flask program, and it does some cleanup as part of the initialization. In the cleanup() procedure, using os.remove(“abc.txt”), I noticed that the file is removed, but not reclaimed by the OS. I use both “python website.py” and “gunicorn website:app”…
Tag: lsof
Difference between lsof -c name and lsof | grep ^name?
I’m trying to figure out whether I have a leak in file descriptors using lsof. The -c option to lsof is defined as: Selects the listing of files for processes executing the command that begins with the characters of c. If that’s true then why do these two commands report different numbers? Answer …
How to exclude from `lsof` output the libraries?
I want to print in a log with the help of lsof the information about opened resources but I don’t want the customer to see what libraries are used. I browsed through the lsof man page but I cannot get a hold of how I can exclude only the libraries from the output. Is there an easy method to do