CMR Configuration

Logging configuration

The CMR comes with a log4j properties file which is not very chatty by default. It is possible to change these settings by opening the inspectit-cmr.jar file and editing the config/log4j.properties file. To log the service requests for example, one can change the log level of the service methods to:

### service logging
### set this to "debug" to get additional information about:
### - Number of timer objects being stored
### - information about the exception sensor
### - information about the combined metric sensor
log4j.logger.info.novatec.inspectit.cmr.service=trace

The above configuration would then print detailed information about the called service methods and the time it took for each request:

2010-11-11 12:02:59,745 : --> info.novatec.inspectit.cmr.service.GlobalDataAccessService#getConnectedAgents()
2010-11-11 12:03:00,403 :     'Get Connected Agents' duration: 657.346324 ms
2010-11-11 12:03:00,404 : <-- info.novatec.inspectit.cmr.service.GlobalDataAccessService#getConnectedAgents()
2010-11-11 12:03:03,803 : --> info.novatec.inspectit.cmr.service.InvocationDataAccessService#getInvocationSequenceOverview()
2010-11-11 12:03:03,819 :     'Get Invocation Sequence Overview' duration: 15.453774 ms
2010-11-11 12:03:03,819 : <-- info.novatec.inspectit.cmr.service.InvocationDataAccessService#getInvocationSequenceOverview()

To get even more information about the other components of the CMR, the level of the rootlogger can be changed, too:

### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=debug, stdout, file


internal refs
https://jira.novatec-gmbh.de/browse/INSPECTIT-236

Buffer configuration

It is possible to change default settings for the buffer that supports the CMR memory storage. It is possible to change these settings by opening the inspectit-cmr.jar file and editing the spring/buffer.properties file.

Warning

Changing the default settings is not recommended, because incorrect settings can lead to out of memory problems. Thus, it should be done only in special occasions by an expert-level user.