Kieker 1.10

kieker.monitoring.probe.servlet
Class JVMMemoryServletContextListener

java.lang.Object
  extended by kieker.monitoring.probe.servlet.AbstractRegularSamplingServletContextListener
      extended by kieker.monitoring.probe.servlet.JVMMemoryServletContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class JVMMemoryServletContextListener
extends AbstractRegularSamplingServletContextListener

Starts and stops the periodic logging of the JIT compilation.
The initial delay and the sampling period (both given in seconds) can be configured via context-params in the web.xml file, as shown below.

The integration and configuration in a web.xml file works as follows:

 <web-app>
  ...
  
 <context-param>
  <param-name>JVMMemoryServletContextListener.samplingIntervalSeconds</param-name>
  <param-value>15</param-value>
 </context-param>
 
  <context-param>
   <param-name>JVMMemoryServletContextListener.initialSamplingDelaySeconds</param-name>
  <param-value>0</param-value>
 </context-param>
 
 <listener>
   <listener-class>
     kieker.monitoring.probe.servlet.JVMMemoryServletContextListener
   </listener-class>
 </listener>
 
 ... 
 </web-app>
 }
 

Since:
1.10
Author:
Nils Christian Ehmke

Field Summary
static String CONTEXT_PARAM_NAME_INITIAL_SAMPLING_DELAY_SECONDS
          Parameter name for the initial delay to be used in the web.xml file.
static String CONTEXT_PARAM_NAME_SAMPLING_INTERVAL_SECONDS
          Parameter name for the sampling interval to be used in the web.xml file.
 
Fields inherited from class kieker.monitoring.probe.servlet.AbstractRegularSamplingServletContextListener
DEFAULT_SENSOR_INITIAL_DELAY_SECONDS, DEFAULT_SENSOR_INTERVAL_SECONDS
 
Constructor Summary
JVMMemoryServletContextListener()
          Empty constructor.
 
Method Summary
 
Methods inherited from class kieker.monitoring.probe.servlet.AbstractRegularSamplingServletContextListener
contextDestroyed, contextInitialized
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_PARAM_NAME_SAMPLING_INTERVAL_SECONDS

public static final String CONTEXT_PARAM_NAME_SAMPLING_INTERVAL_SECONDS
Parameter name for the sampling interval to be used in the web.xml file.


CONTEXT_PARAM_NAME_INITIAL_SAMPLING_DELAY_SECONDS

public static final String CONTEXT_PARAM_NAME_INITIAL_SAMPLING_DELAY_SECONDS
Parameter name for the initial delay to be used in the web.xml file.

Constructor Detail

JVMMemoryServletContextListener

public JVMMemoryServletContextListener()
Empty constructor.


Kieker 1.10

Copyright 2014 Kieker Project, http://kieker-monitoring.net