Skip to content

Instantly share code, notes, and snippets.

@eranrund
Created September 9, 2012 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eranrund/3683438 to your computer and use it in GitHub Desktop.
Save eranrund/3683438 to your computer and use it in GitHub Desktop.
...
import gc
print 'before collect'
gc.collect()
print 'after collect'
print 'done, calling lsof'
subprocess.call("lsof -p%d -a -iTCP" % (pid,), shell=True)
print 'done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment