Abstract:In this paper, a model for software monitoring is proposed by taking advantages of component technology and AOP (Aspect-Oriented Programming) technology. This model for monitoring is modular and flexible with notions of component at the level of AOP. The function of monitoring is encapsulated into an aspect component in the model. In this way, the code tangling and the code scattering issues caused by monitoring code inserted into function code are resolved.