Uninstall an Java agent

Updated at:

Uninstall the Java agent to stop monitoring your Java application.

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 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.