Skip to content

Instantly share code, notes, and snippets.

@dimi-kr
Forked from hjr3/fpm-netstat.sh
Created May 10, 2017 13:51
Show Gist options
  • Save dimi-kr/7c7bce39cdf28e55af5980502c268afa to your computer and use it in GitHub Desktop.
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
netstat -apn | grep $outgoing_ip_address
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