Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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