kieker.monitoring.probe.servlet
Class CPUsCombinedServletContextListener
java.lang.Object
kieker.monitoring.probe.servlet.CPUsCombinedServletContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class CPUsCombinedServletContextListener
- extends Object
- implements javax.servlet.ServletContextListener
Starts and stops the periodic logging of CPU utilization employing the SigarSamplerFactory
as the Servlet is
initialized and destroyed respectively. The statistics are logged with a period of
seconds.
It can be integrated into a web.xml as follows:
<listener>
<listener-class>
kieker.monitoring.probe.servlet.CPUMemUsageServletContextListener
</listener-class>
</listener>
- Author:
- Andre van Hoorn
CPUsCombinedServletContextListener
public CPUsCombinedServletContextListener()
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent arg0)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>