Skip to content

Instantly share code, notes, and snippets.

@dreiggy
Forked from ajbonner/strace-fpm.sh
Created October 9, 2018 11:40
Show Gist options
  • Save dreiggy/42bf63511be24396f906453babe44e5f to your computer and use it in GitHub Desktop.
Save dreiggy/42bf63511be24396f906453babe44e5f to your computer and use it in GitHub Desktop.
Strace all running php-fpm processes to file with timestamps and pid
sudo strace -f -tt -o /tmp/php.trace -s1024 -p `pgrep -f php-fpm | tr '\n' ','`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment