strace_php-fpm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
strace_php-fpm [2016/11/04 19:54] – 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 ^ | ||
+ | | -r | Print relative timestamp upon entry to each sys call. Records the difference between the beginning of successive system calls | | ||
| -tt | Time printed will include microseconds | | -tt | Time printed will include microseconds | ||
| -o | Output file | | | -o | Output file | |
strace_php-fpm.1478289271.txt.gz · Last modified: 2024/05/23 07:26 (external edit)