When Apache met DTrace -- meet mod_dtrace

This is one of the coolest and most practical things I've seen in a while. DTrace hooks for the Apache webserver. 'Matty' (Ryan Matteson) over at daemons.net wrote this up and posted it on the OpenSolaris forums a little while ago. Matty includes the full source code for mod_dtrace here.

Some examples from mod_dtrace,

View HTTP Requests By Method:

  $ viewreqs.pl -d 5
  Timestamp GETs POSTs HEADs TRACEs
  02:05:59  0    0     0     0
  02:06:04  12   0     0     0
  02:06:09  15   0     0     0
  02:06:14  59   0     0     0
  02:06:19  68   0     0     0
  02:06:24  70   0     0     0


  View HTTP Requests By HTTPD Process:

  $ viewreqsbyproc.d
  Execname  Process  Requests Processed
  httpd     19103       16
  httpd     19152       17
  httpd     19101       17
  httpd     19102       19
  httpd     19104       20
  httpd     19105       20

Reading some of the articles from Matty, it sounds like he's one of those super-uber-sysadmins with amazing multi-OS skills.
Comments:

Post a Comment:
Comments are closed for this entry.
About

moazam

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today