Enable or disable thread profiling in the APM Insight Java agent

How to enable or disable thread profiling in the Java agent?

The APM Insight Java agent v5.6 is designed to enable thread profiling by default and runs every eight hours (since JVM start) for five minutes to identify and instrument the slow methods in your application.

You can also disable thread profiling by following the below steps.
  1. Open the apminsight.conf file in a text editor.
  2. Add the below key value in a new line.
  3. Save the apminsight.conf file.
    Note: This will not disable your on-demand thread profiling.
  4. To re-enable thread profiling, set the value to true.