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,
Reading some of the articles from Matty, it sounds like he's one of those super-uber-sysadmins with amazing multi-OS skills.
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.
