strace_php-fpm
This is an old revision of the document!
Strace
The following command straces all php-fpm processes and places the output in separate files for each process:
strace -ff -tt -o /tmp/php.trace/trace -s1024 -p `pidof php-fpm | tr ' ' ','`
| Flag | Definition |
|---|---|
| -ff | If -o is specified, each process traced will have its own file name |
| -tt | Time printed will include microseconds |
| -o | Output file |
| -s | string size |
| -p | PID |
| tr | Translate, squeeze, or delete characters from stdin, writing to stdout |
strace_php-fpm.1478289242.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
