After you install the Application Real-Time Monitoring Service (ARMS) agent for a Java application that is deployed in Container Service for Kubernetes, ARMS starts to monitor the Java application. You can view the monitoring data of application topology, API requests, abnormal transactions, slow transactions, and SQL analysis. This topic describes how to install the ARMS agent for a Java application that is deployed in Container Service for Kubernetes.
Prerequisites
- Create a dedicated Kubernetes cluster
- Create a namespace: The namespace in this example is arms-demo.
-
If the JDK Version is 1.8.0_25 or 1.8.0_31, you may fail to install the arms Agent. In this case, upgrade the JDK to the latest version in 1.8.X.
Install the ARMS application monitoring agent
Install ARMS application monitoring components ack-arms-pilot.
- Log on to the Alibaba Cloud Container Service for Kubernetes console.
- In the left-side navigation pane, choose ack-arms-pilot . On the right of the page, click
- On the app catalog-ack-arms-pilot page, select the target cluster in the create pane, and click create .
Authorize Alibaba Cloud Container Service for Kubernetes
Use the following steps to authorize Alibaba Cloud Container Service for Kubernetes to access ARMS resources.
Enable ARMS application monitoring for Java applications
The following steps demonstrate how to enable ARMS application monitoring for a new application or an existing application.
To enable ARMS application monitoring when you create an application, perform the following steps.
To enable ARMS application monitoring for an existing application, perform the following steps.
Execution result
On the Deployments or StatefulSets tab, ARMS Console appears in the Actions column of the application.

Uninstall the ARMS agent
- Log on to the Alibaba Cloud Container Service for Kubernetes console.
- In the left-side navigation pane, click Clusters. On the Clusters page, click Applications in the Actions column corresponding to the cluster that contains the Java application from which you want to uninstall the ARMS agent.
- In the left-side navigation pane, select Releases.
- On the Helm tab, select the release name arms-pilot of the ARMS agent, and click Delete in the Actions column.
- In the Delete dialog box, click OK.
- Restart your business pod.
Change the application name
You can change the application name without restarting the application or reinstalling the agent. For example, if you forget to change the sample name Java-Demo to a custom name, you can edit the armsPilotCreateAppName parameter in the Deployment application and then restart the pod. For more information, see How can I change the name of a Java application that is deployed in a Container Service for Kubernetes cluster?