Help Center> Cloud Container Engine> User Guide> Workloads> Configuring a Container> Configuring APM Settings for Performance Bottleneck Analysis
Updated on 2024-01-29 GMT+08:00

Configuring APM Settings for Performance Bottleneck Analysis

Scenario

Application Performance Management (APM) allows you to monitor Java workloads through tracing and topology. You can install APM probes to locate and analyze problems for Java workloads.

You can configure Java workload monitoring when and after a workload is created.

Prerequisites

If you have not enabled the APM service, go to the APM console and enable it as prompted.

Procedure

  1. Log in to the CCE console.
  2. Click the cluster name to go to the cluster console, choose Workloads in the navigation pane, and click the Create Workload in the upper right corner.
  3. When creating a workload, click APM Settings in the Advanced Settings area. By default, the probe is disabled. You can choose APM 2.0 as required. After the probe is enabled, APM can locate and analyze problems for Java programs.

    1. The APM 1.0 probe will be initialized in an auto created init container named init-pinpoint. The init container will be allocated 0.25-core CPU and 250 MiB memory.
    2. Adding an APM probe will add the environment variables PAAS_MONITORING_GROUP, JAVA_TOOL_OPTIONS, and PAAS_CLUSTER_ID to all service containers.
    3. Adding an APM probe will mount a local storage volume named paas-apm (for APM 1.0 probe) to all service containers.

  4. Set probe-related parameters.

    APM 1.0 probe
    • Monitoring Group: Enter a monitoring group name, for example, testapp.
    • Probe Version: Select the probe version.
    • Probe Upgrade Policy: By default, Auto upgrade upon restart is selected.
      • Auto upgrade upon restart: The system downloads the probe image each time the pod is restarted.
      • Manual upgrade upon restart: This policy means that if a local image is available, the local image will be used. The system downloads the probe image only when a local image is unavailable.

  5. Three minutes after the application is started, its data will be displayed on the APM console. You can log in to the APM console and optimize application performance through topology and tracing. For details, see Topology.

Configuring APM Settings

  1. Log in to the CCE console.
  2. Click the cluster name to go to the cluster console, choose Workloads in the navigation pane, and click the desired workload name.
  3. On the page displayed, click the APM Settings tab and click Edit in the lower right corner.

    For details about the parameters, see 4.