In this second half of my foray into performance monitoring with AspectJ, I extend the Glassbox Inspector to provide more meaningful information about application performance by adding monitors that track the interaction of controllers for the Struts and Spring Web application frameworks, as well as serving and requesting Web services operations. I also extend the system to support multiple applications and add an error-handling layer and the ability to easily enable and disable monitoring at run time. I conclude the article by showing you how to deploy the Glassbox Inspector using load-time weaving and how to measure the resulting overhead.
The Glassbox Inspector, a product of the Glassbox project, is a low overhead performance-monitoring tool that can be used in production environments. It combines AspectJ and JMX to capture important performance metrics. Metrics such as total counts, total time, and worst case performance for requests are maintained by the system for further downstream analysis.