Performance Sampling Command

Performance Sampling Command

The performance sampling feature can detect the time consumption at various points in the Dubbo processing chain. When a timeout occurs ( usageTime / timeout > profilerWarnPercent * 100 ), the call duration is logged.

This feature is divided into two modes: simple profiler and detail profiler. The simple profiler mode is enabled by default, while the detail profiler mode is disabled by default. The detail profiler collects additional information such as processing time for each filter and specific time consumption on protocols, compared to the simple profiler. If long processing times are found within the Dubbo framework while in simple profiler, the detail profiler can be enabled for better issue diagnosis.

Request Time Sampling

enableSimpleProfiler Command

Enable simple profiler mode, enabled by default

  1. dubbo>enableSimpleProfiler
  2. OK
  3. dubbo>

disableSimpleProfiler Command

Disable simple profiler mode, which will also disable detail profiler

  1. dubbo>disableSimpleProfiler
  2. OK
  3. dubbo>

enableDetailProfiler Command

Enable detail profiler mode, disabled by default. It will only be truly enabled when simple profiler is on

  1. dubbo>enableDetailProfiler
  2. OK. This will cause performance degradation, please be careful!
  3. dubbo>

disableDetailProfiler Command

Disable detail profiler mode, which does not affect simple profiler

  1. dubbo>disableDetailProfiler
  2. OK
  3. dubbo>

setProfilerWarnPercent Command

Set the warning percentage for timeout

Command: setProfilerWarnPercent {profilerWarnPercent}

profilerWarnPercent: The warning percentage for timeout, range 0.0 ~ 1.0, default is 0.75

  1. dubbo>setProfilerWarnPercent 0.75
  2. OK
  3. dubbo>

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)