Skip to content

Instantly share code, notes, and snippets.

@eranrund
Created September 9, 2012 09:13
Show Gist options
  • 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