All Products
Search
Document Center

Application Real-Time Monitoring Service:Uninstall the Java agent

Last Updated:Sep 04, 2026

If you no longer need Application Real-Time Monitoring Service (ARMS) to monitor your Java application, you can uninstall the agent.

Uninstall a manually installed agent

  1. Remove the {AppName}, {LicenseKey}, and {javaagent} parameters that you added during installation.

  2. Restart your Java application.

Uninstall an agent from Function Compute

  1. Log on to the Function Compute console. In the navigation pane on the left, choose Function Management > Functions.

  2. In the top navigation bar, select a region. On the Functions page, click the name of the target function.

  3. On the function details page, click the Configuration tab.

  4. In the pane on the left, on the Layers tab, click Edit. In the panel that appears, remove the ARMS Agent layer, and then click Deploy.

  5. In the pane on the left, on the Environment Variable tab, click Edit. Remove the FC_EXTENSION_ARMS=true and FC_EXTENSIONS_ARMS_LICENSE_KEY=xxxx environment variables, and then click Deploy.

Uninstall an agent from a Kubernetes environment

Warning

The ack-onepilot component is shared by Microservices Engine (MSE) and ARMS. Before you uninstall ack-onepilot, ensure your application is not integrated with MSE. Otherwise, uninstalling ack-onepilot will make MSE unavailable.

Uninstall for all applications

Method 1: Uninstall from the ACK console

  1. Log on to the ACK console. On the Clusters page, click the name of the cluster.

  2. In the left-side navigation pane, click Components and Add-ons and then search for ack-onepilot by keyword.

  3. On the ack-onepilot card, click Uninstall.

  4. In the dialog box that appears, click OK.

  5. Restart your application pods. In the navigation pane on the left, choose Workloads > Stateless or StatefulSets. At the bottom of the page, click Batch Redeploy.

Method 2: Uninstall using the CLI

  1. To uninstall ack-onepilot, run the following command:

    helm3 uninstall --namespace ack-onepilot ack-onepilot
  2. Restart your application pods.

Uninstall for a specific application

  1. Log on to the ACK console. On the Clusters page, click the name of the cluster.

  2. In the navigation pane on the left, choose Workloads > Stateless. Select the namespace that contains your application. Find the application and in the Actions column, choose image > Edit YAML.

  3. In the Edit YAML dialog box, remove the labels section added during installation, and then click Update.

  4. Restart the pods. In the navigation pane on the left, choose Workloads > Stateless or StatefulSets. At the bottom of the page, click Batch Redeploy.

Uninstall the agent in Docker

  1. Remove the agent installation content from the Dockerfile.

  2. Run the docker build command to build the image.

  3. Run the docker run command to start the image.