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.
After a day or so of hacking, I was finally able to get Solaris 10 U1 x86 to run on my new Fujitsu P7120D with fully fuctioning widescreen (1280x768) resolution and support for the Atheros Super AG wireless card. For those who are not familiar with this machine, the Fujitsu 7120D is a subcompact laptop with a crisp widescreen LCD, a built-in DVD drive, and excellent battery life.
