Skip to content

Instantly share code, notes, and snippets.

@stubbetje
Created February 17, 2012 20:42
Show Gist options
  • Save stubbetje/1855330 to your computer and use it in GitHub Desktop.
Save stubbetje/1855330 to your computer and use it in GitHub Desktop.
strace all running httpd processes for troubleshooting
#!/bin/bash
#strace -s2048 -f $(ps auxfww | egrep -- php.*--fpm | egrep -v egrep | cut -d' ' -f 4 | sed -e 's/^/-p/g')
strace -f $(ps auxfww | egrep [h]ttpd | awk '{print $2}' | sed 's/^/-p/g') 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment