apm-agent-java icon indicating copy to clipboard operation
apm-agent-java copied to clipboard

Add thread dump debug option

Open SylvainJuge opened this issue 10 months ago • 0 comments

What does this PR do?

Adds an internal option that triggers a thread dump at regular interval. minimal frequency is limited at 100ms

One of the expected usages is when the application code is not known and relies on unsupported technologies, in this case trace_methods has to be configured for transactions, the expected usage scenario is:

  • configure the agent with log_level=debug and thread_dump_interval=1000ms
  • start the application and trigger a few transactions manually
  • analyze the agent logs with the thread dumps to find relevant classes and methods to instrument.
  • thread dump interval needs to be adjusted relative to the usual transaction duration, for very fast transactions less than 100ms triggering more transactions will be required to get at least a few thread dumps that contain relevant application code.

Checklist

SylvainJuge avatar Apr 18 '24 09:04 SylvainJuge