strace_php-fpm
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| strace_php-fpm [2016/11/04 19:54] – created luke7858 | strace_php-fpm [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| === Strace === | === Strace === | ||
| The following command straces all php-fpm processes and places the output in separate files for each process: | The following command straces all php-fpm processes and places the output in separate files for each process: | ||
| + | \\ | ||
| + | Most appropriate command with good timestamps: | ||
| + | <sxh bash> | ||
| + | strace -ff -r -o / | ||
| + | </ | ||
| + | or | ||
| <sxh bash> | <sxh bash> | ||
| strace -ff -tt -o / | strace -ff -tt -o / | ||
| Line 6: | Line 12: | ||
| \\ | \\ | ||
| ^ Flag ^ Definition ^ | ^ Flag ^ Definition ^ | ||
| - | | -ff | If -o is specified, | + | | -r |
| | -tt | Time printed will include microseconds | | -tt | Time printed will include microseconds | ||
| | -o | Output file | | | -o | Output file | | ||
| + | | -ff | If -o is specified, each process traced will have its own file name | | ||
| | -s | string size | | | -s | string size | | ||
| | -p | PID | | | -p | PID | | ||
| | tr | Translate, squeeze, or delete characters from stdin, writing to stdout | | | 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)
