Skip to content

Instantly share code, notes, and snippets.

@YvesChan
YvesChan / strace-phpfpm
Last active December 20, 2015 22:59
strace all the php-fpm worker processes.
#!/bin/bash
additional_strace_args="$1"
MASTER_PID=$(ps auwx | grep php-fpm | grep 'master process' | tr -s ' ' | cut -d ' ' -f 2)
mkdir php-fpm-trace
pgrep fpm | while read pid
do