-
-
Save dimi-kr/7c7bce39cdf28e55af5980502c268afa to your computer and use it in GitHub Desktop.
Handy script to get strace to attach to all php-fpm workers
This file contains hidden or 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
netstat -apn | grep $outgoing_ip_address |
This file contains hidden or 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
strace $(for P in $(pidof php-fpm); do echo -n "-p $P "; done;) -o strace -ff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment