Skip to content

Instantly share code, notes, and snippets.

@ashtriggs
Created June 8, 2011 16:08
Show Gist options
  • Select an option

  • Save ashtriggs/1014725 to your computer and use it in GitHub Desktop.

Select an option

Save ashtriggs/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
@ashtriggs

Copy link
Copy Markdown
Author

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