Skip to content

Instantly share code, notes, and snippets.

@andyt
Created June 8, 2011 16:08
Show Gist options
  • Save andyt/1014725 to your computer and use it in GitHub Desktop.
Save andyt/1014725 to your computer and use it in GitHub Desktop.
List gems currently in use across all running processes
sudo lsof|grep -i gems|awk '{ print $9 }'|grep -oE "[^/]+\-[0-9\.]+\/"|sort|uniq
@andyt
Copy link
Author

andyt commented Jun 20, 2011

Note that this will only list gems where there is a file open - commonly only those with a shared object (*.so) file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment