Enabling or disabling transaction tracking and diagnostic data collection
By default, transaction tracking and method tracing are enabled for the data collector. Heap snapshot collection and memory allocation collection are disabled. You can customize the data collection or the intervals at which the diagnostic data is collected by editing the .properties files of the data collector.
About this task
The properties files of the data collector are in the
dc_home directory, for example,
/opt/ibm/apm/.gdc/7.3.0.14.08. Use different properties to customize the data collector for the following
purposes:
- Enable or disable transaction tracking.
- Enable or disable heap snapshot collection.
- Specify the interval at which the data collector takes snapshot of heap dump.
- Enable or disable memory allocation monitoring.
- Specify the interval at which the data collector collects memory allocation information.
- Enable or disable method tracing.
Remember: Depending on whether you have restarted the Liberty server after data
collector configuration, different .properties files are applicable. If you
have restarted the Liberty server after data collector configuration, a runtime
directory is created within the dc_home directory. After
that, you can only use the .properties files within the
dc_home/runtime/appserver_version.node_name.profile_name.server_name
directory to customize data collector for each application server.
Procedure
Results
For more information about the data collector .properties files for each application server, see Properties files for Liberty data collector.
What to do next
- After method tracing is enabled, you can set thresholds for different types of requests, so that different levels of monitoring data can be collected for different requests. For instructions, see Customizing the request thresholds.
- If you disabled memory allocation collection, remember to remove the
following lines from the jvm.options file of the Liberty
server:
-Xhealthcenter:level=inprocess -Xgc:allocationSamplingGranularity=10000