User Tools

Site Tools


strace_php-fpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
strace_php-fpm [2016/11/04 19:54] – luke7858strace_php-fpm [2017/07/28 06:41] (current) – luke7858
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 /tmp/php.trace/trace  -s1024 -p `pidof php-fpm | tr ' ' ','` 
 +</sxh>
 +or
 <sxh bash> <sxh bash>
 strace -ff -tt -o /tmp/php.trace/trace  -s1024 -p `pidof php-fpm | tr ' ' ','`  strace -ff -tt -o /tmp/php.trace/trace  -s1024 -p `pidof php-fpm | tr ' ' ','` 
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: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki