User Tools

Site Tools


strace_apache_speed

Differences

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

Link to this comparison view

Next revision
Previous revision
strace_apache_speed [2016/03/24 21:33] – created luke7858strace_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/1.1  GET / HTTP/1.1 
-Host: lukeslinux.co.uk+Host: example.com
 </sxh> </sxh>
 ***Press ENTER Once*** ***Press ENTER Once***
Line 29: Line 29:
 </sxh> </sxh>
 <sxh bash> <sxh bash>
-strace -o /tmp/output -f -r -s4096 -p 16742+strace -o /tmp/output -f -r -s4096 -p `pidof telnet`
 </sxh> </sxh>
 <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
 +</sxh>
 +\\
 +\\
 +\\
 +\\
 +=== Start of Script ===
 +<sxh bash>
 +{ sleep 2;  printf "GET / HTTP/1.1\n"; printf "Host: example.com\n" ; echo ""; sleep 2;} | telnet 127.0.0.1 80
 </sxh> </sxh>
strace_apache_speed.1458855234.txt.gz · Last modified: 2024/05/23 07:26 (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