Component Monitoring of OSGi-Based Software
Tao Wang, Xiaowei Zhou, Jun Fang Wei, Wenbo Zhang, Xin Zhu · 2010
OSGi is a widely used service-oriented platform which provides support for the development and execution of component-based e-business applications. The component monitoring of OSGi-based software is important to the software reliability analysis and abnormality diagnosis. However, current approaches not only bring significant overhead, but also lack interaction behavior analysis. This paper focuses on monitoring components from resource utilization and interaction behavior perspectives. We propose an approach to trace thread execution for updating the relationship between threads and bundles, so that the CPU and memory utilization of bundles are calculated, and the service invocation graph is updated at runtime. A prototype tool is implemented and applied in an application server OnceAS based on OSGi. The experiments using TPC-W benchmark validate our approach without significant resource and performance overhead. Furthermore, simulation results show that our approach is of high accuracy for monitoring CPU utilization of bundles.