strace_apache_speed
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| strace_apache_speed [2016/03/24 21:33] – created luke7858 | strace_apache_speed [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| $ telnet localhost 80 | $ telnet localhost 80 | ||
| GET / HTTP/ | GET / HTTP/ | ||
| - | Host: lukeslinux.co.uk | + | Host: example.com |
| </ | </ | ||
| ***Press ENTER Once*** | ***Press ENTER Once*** | ||
| Line 29: | Line 29: | ||
| </ | </ | ||
| <sxh bash> | <sxh bash> | ||
| - | strace -o /tmp/output -f -r -s4096 -p 16742 | + | strace -o /tmp/output -f -r -s4096 -p `pidof telnet` |
| </ | </ | ||
| <sxh bash> | <sxh bash> | ||
| Line 53: | Line 53: | ||
| <sxh bash> | <sxh bash> | ||
| cat /tmp/output | cut -c12-16 | sort -rn | head | cat /tmp/output | cut -c12-16 | sort -rn | head | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | === Start of Script === | ||
| + | <sxh bash> | ||
| + | { sleep 2; printf "GET / HTTP/ | ||
| </ | </ | ||
strace_apache_speed.1458855234.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
