Hi,
I have created simple tool called httpdtap [1]. It uses SystemTap [2] to
get various information from running httpd instance. To give you better
idea what does it do and how it is useful, I'm including list of
currently available commands:
- req_files - Shows files opened during the request.
- req_from - Shows requests received from particular IP.
- req_time - Shows requests sorted by the time needed to finished them.
- req_slower_than - Shows requests slower than N ms.
There is example of httpdtap output for mentioned commands available in
README file on [1].
It works in real-time and according to my measurements using "ab", the
performance penalty is really very low, so I think it could be used even
in production.
I have tested httpdtap with httpd-2.4.6 and httpd-2.2.23, but it should
work with any reasonably new version in httpd-2.2 row and with any
version in httpd-2.4 row.
I'm asking you for some further testing before I decide to release first
version of this tool and also for some ideas about more information you
would like to get from running httpd instance.
Since this is my first try with SystemTap and this tool is not released
yet, I expect that you find some bugs, so please share them with me :).
[1] https://github.com/hanzz/httpdtap
[2] http://sourceware.org/systemtap/wiki
Thanks,
Jan Kaluza