If you no longer need Application Real-Time Monitoring Service (ARMS) to monitor your Java applications, you can uninstall the ARMS agent. This topic describes how to uninstall an ARMS agent for Java.
Uninstall a manually installed ARMS agent
Delete the {AppName}, {LicenseKey}, and {javaagent} parameters that are added when you install the ARMS agent.
Restart the Java application.
Uninstall an ARMS agent deployed in Function Compute
Log on to the Function Compute console. In the left-side navigation pane, click Functions.
In the top navigation bar, select a region. On the Functions page, click the function that you want to manage.
On the function details page, click the Configurations tab.
Click the Layers tab and then click Modify. In the panel that appears, delete the ARMS Agent layer and click Deploy.
Click the Environment Variables tab and then click Modify. In the panel that appears, delete the
FC_EXTENSION_ARMS=trueandFC_EXTENSIONS_ARMS_LICENSE_KEY=xxxxenvironment variables, and then click Deploy.
Uninstall an ARMS agent deployed in an ACK cluster
The ack-onepilot component is shared by Microservices Engine (MSE) and ARMS. Before you uninstall the component, make sure that you are not using MSE. Otherwise, MSE becomes available.
Uninstall the ARMS agent for all applications in the cluster
Method 1: Use the ACK console
Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, click the name of the cluster that you want to manage.
In the left-side navigation pane, click . On the Add-ons page, enter ack-onepilot.
Click Uninstall on the ack-onepilot card.
In the message that appears, click OK.
Restart the pod. Then, click Workloads in the left-side navigation pane, click Deployments or StatefulSets, and click Batch Redeploy in the lower part of the page.
Method 2: Use the CLI
Run the following command to uninstall the ack-onepilot component:
helm3 uninstall --namespace ack-onepilot ack-onepilotRestart the pod.
Uninstall the ARMS agent for a specific application in the cluster
Log on to the ACK console. On the Clusters page, click the name of the cluster.
In the left-side navigation pane, choose . On the Deployments page, find the workspace where the application belongs and choose in the Actions column.
In the Edit YAML dialog box, delete the
labelsthat you added when you installed the ARMS agent and click Update.Restart the pod. Then, click Workloads in the left-side navigation pane, click Deployments or StatefulSets, and click Batch Redeploy in the lower part of the page.
Uninstall an ARMS agent deployed in Docker
Delete the content of the Dockerfile added when you installed the ARMS agent.
Run the
docker buildcommand to construct an image.Run the
docker runcommand to start the image.
