Created
February 17, 2012 20:42
-
-
Save stubbetje/1855330 to your computer and use it in GitHub Desktop.
strace all running httpd processes for troubleshooting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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