Analyzing CPU Consumption Hotspots

You can analyze CPU consumption by locating the top consuming process and reviewing its method hotspots.

Context

The Hotspots page parses the code based on Execution time or Top APIs, depending on the active tab.

For each metric, you can review the Call hierarchy or Hotspots to review which method contributes the most to the CPU time. You can also filter for different thread states by clicking a thread state to narrow the investigation.

When the top consuming process is the storefront, backoffice, background thread,s or any Tomcat service, the investigation includes the analysis of threads and method hotspots.

Procedure

  1. From the Dynatrace sidemenu, select Start of the navigation pathApplication & Microservices Next navigation step Profiling and optimizationEnd of the navigation path.

    The Profiling and optimization page appears displaying the different types of resource consumption options appear.

  2. Click Continuous CPU profiling.

    The CPU analysis page appears and displays a list of process groups and the CPU resource statistics for each host.

  3. There are two ways to investigate CPU resource consumption:
    • Click the process group from the Name column.

      Review the CPU consumption meterics. To review more data, click the process name from the Name column.

    • Locate the process group you want to investigate and click its corresponding Action menu and select Process group details.

      Review the Process group metrics. To review more data, click the process name from the Name column.

  4. For a deeper breakdown of CPU consumption within the selected process, click View detailed CPU breakdown in the process details page.

    The View detailed CPU breakdown feature displays CPU usage for processes. The CPU usage value changes depending on the selected area on the chart. For best results, select a range that includes the highest point.

  5. Click the Action menu and select Method hotspots.
  6. Explore the metrics to identify the amount of CPU consumption according to each method.