Customizing data collector with properties files
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/liberty855/wlp/usr/servers/defaultServer/.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: After you modify the .properties files, use the
cf push command to push the updates to the IBM® Cloud environment.
Procedure
What to do next
- After method tracing is enabled, you can set thresholds for different types of requests by using the environment variables, so that different levels of monitoring data can be collected for different requests. For applicable environment variables, see Table 3.
- 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