Updated on 2025-03-27 GMT+08:00

Connecting IDE to APM

Prerequisite

The public network has been connected.

Procedure

  1. Download the APM Agent.

    1. Log in to the management console.
    2. Click on the left and choose Application > Application Performance Management.
    3. In the navigation pane, choose Application Monitoring > Applications.
      Figure 1 Connecting an application
    4. On the displayed page, click Connect Application.
      Figure 2 Connecting an application
    5. In the navigation pane on the left, choose System Management > Access Keys. On the displayed page, obtain an AK and SK for the JavaAgent. For details, see Access Keys.
    6. Replace APM_AK and APM_SK in the installation command with the AK and SK obtained from the Access Keys page.

  2. Run the git bash command. In the Agent directory of drive D on the local PC, run the copied command to install JavaAgent.
  3. Change the values of master.address, access.address, and business in the apm.config file.

    Figure 3 Modifying the configuration file

  4. Click the drop-down list and choose Edit Configurations.

    1. Modify the running/debugging configuration of IDE.
      Figure 4 Modifying the running/debugging configuration
    2. On the Run/Debug Configurations page, choose ApmMasterApp from the navigation pane. Add -javaagent:D:\agent\apm-javaagent\apm-javaagent.jar=appName=apm-master to Build and run.
      Figure 5 Modifying the configuration under "Build and run"
    3. Click OK.

  5. Restart the service. If APM is displayed in the Application drop-down list, the connection is successful.