All Products
Search
Document Center

AnalyticDB:Spark application performance diagnostics

Last Updated:Jun 25, 2026

AnalyticDB for MySQL Enterprise Edition, Basic Edition, and Data Lakehouse Edition (V3.0) provides the Spark application diagnostics feature. If a Spark application that you submit has performance issues, you can use the diagnostic information to quickly locate and analyze performance bottlenecks, optimize the Spark application, and improve problem-solving efficiency. This topic describes how to diagnose the performance of Spark applications and provides examples.

Prerequisites

Use cases

This feature is primarily used in the following scenarios:

  • Dataset performance analysis: When processing large-scale data with Spark, performance analysis is essential. The diagnostics tool helps you quickly identify performance bottlenecks, such as memory spikes and disk spills, to improve data processing efficiency.

  • Load balancing for large-scale applications: When Spark applications run under high-concurrency workloads, performance issues such as data skew, long-tail tasks, and load imbalance can occur. Diagnosing the application helps you quickly identify these issues so you can optimize the application.

Limitations

  • You can diagnose only Spark applications that completed successfully within the last 14 days.

  • Only batch and streaming applications are supported.

Procedure

  1. Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. Find the cluster that you want to manage and click the cluster ID.

  2. In the left-side navigation pane, choose Job Development>Spark JAR Development.

  3. In the Workspaces section, find the target application and choose More > History in the Actions column.

  4. In the Tuning History section, find the target task and click Diagnose in the Actions column.

    Note

    After the diagnosis is complete, the Diagnostic Optimization Details panel automatically opens. If the application has performance issues, use the information in this panel to optimize it.