Skip to content

Instantly share code, notes, and snippets.

@jdeathe
Last active September 25, 2018 09:59
Show Gist options
  • Save jdeathe/28b2c59ea4c8de0da6d33ca57820691a to your computer and use it in GitHub Desktop.
Save jdeathe/28b2c59ea4c8de0da6d33ca57820691a to your computer and use it in GitHub Desktop.
Identify PHP FastCGI Process Memory Usage

Identify PHP FastCGI Process Memory Usage

pmap -x $(ps ax \
  | grep php-cgi \
  | grep -v grep \
  | awk '{ print $1 }' \
  | awk -v RS='' '{ gsub("\n", " "); print; }'\
) | grep -E '^(Address|total)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment