]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/httpdstat_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / httpdstat_example.txt
1 The following is an example of using the httpdstat.d script.
2
3
4 This Solaris 10 server is running Apache as a webserver. The script matches
5 on the process name "httpd". Here it shows many GET connections,
6
7    # httpdstat.d
8    TIME                    NUM    GET  POST  HEAD TRACE
9    2005 Nov 29 18:46:46     38     38     0     0     0
10    2005 Nov 29 18:46:47    109    109     0     0     0
11    2005 Nov 29 18:46:48    112    112     0     0     0
12    2005 Nov 29 18:46:49    113    113     0     0     0
13    2005 Nov 29 18:46:50    107    107     0     0     0
14    2005 Nov 29 18:46:51     56     56     0     0     0
15    2005 Nov 29 18:46:52      0      0     0     0     0
16    2005 Nov 29 18:46:53      0      0     0     0     0
17    2005 Nov 29 18:46:54     20     20     0     0     0
18    2005 Nov 29 18:46:55     48     48     0     0     0
19    ^C
20
21 For a few seconds we had around 100 GETs per second.
22
23
24
25 httpdstat.d accepts an argument as the sample interval, here we print a
26 line every 30 seconds,
27
28    # httpdstat.d 30
29    TIME                    NUM    GET  POST  HEAD TRACE
30    2005 Nov 29 18:50:49    462    458     3     1     0
31    2005 Nov 29 18:51:19    421    413     5     2     1
32    2005 Nov 29 18:51:49   1361   1358     3     0     0
33    ^C
34
35 The values are for the entire interval.
36