After you install an agent for a Java application, Cloud Monitor 2.0 starts monitoring it. On the Instance Monitoring page, you'll see its basic monitoring data, instance garbage collection (GC) details, and Java Virtual Machine (JVM) memory usage.
Prerequisite
An agent is installed for the application.
Try in Playground
Alibaba Cloud Playground provides a demo environment where you can experience the main features of Cloud Monitor 2.0.
Visit the Playground demo environment. By default, you are logged on to the
o11y-demo-cn-hangzhouworkspace.In the left navigation pane, choose .
On the Applications page, click an application. Then, click Instance Monitoring.
View in console
Log on to the Cloud Monitor 2.0 console, and select a workspace. In the left navigation pane, choose .
On the Applications page, click an application. Then, click Instance Monitoring.
Instance Monitoring
The Instance Monitoring tab provides dashboard data based on whether the application is deployed in an Elastic Compute Service (ECS) instance or a container cluster, and whether the environment is monitored in Managed Service for Prometheus.
If your application is deployed in a container cluster that is monitored in Managed Service for Prometheus, the data of Managed Service for Prometheus is displayed in the dashboard. For information about how to use Managed Service for Prometheus to a monitor a container cluster, see Monitor an ACK cluster.
If the container cluster is not monitored in Managed Service for Prometheus, make sure that the Application Monitoring agent version is 4.1.0 or later. Then, the data of Application Monitoring is displayed. For information about the agent for Java, see Release notes of the ARMS agent for Java.
ECS instance
In the Quick Filter section, query charts and instances by cluster or instance ID.
In the trend charts section, view the time series of basic monitoring, GCs, and JVM memory.
Basic monitoring: shows the trend charts of CPU utilization, memory usage, and disk usage in the specified time period. Switch between the average and maximum values from the drop-down list.
Instance GC: shows the trend charts of full GCs and young GCs in the specified time period. Switch between the number of GCs and the average duration.
JVM memory: shows the trend charts of used and maximum heap memory within the specified time period from the drop-down list. Switch between the heap memory and non-heap memory.
NoteThe data collected by Application Monitoring comes from JMX, excluding some non-heap memory areas of Java processes. Therefore, the sum of heap and non-heap memory displayed in Application Monitoring differ greatly from the RES queried by running the
topcommand. For more information, see Details of JVM monitoring memory.
In the instance list section, view instance information, such as the IP address, CPU utilization, memory usage, disk usage, load, number of full GCs, number of young GCs, heap memory usage, non-heap memory usage, and key metrics of each instance defined by the RED Method, including rate, errors, and duration.
In the instance list, you can perform the following operations:
Click an instance IP address to view the instance details.
Click Traces in the Actions column to view the trace details of an instance.
Container cluster monitored in Managed Service for Prometheus
In the Quick Filter section, query charts and instances by cluster ID or host IP address.
In the trend charts section, view the time series of basic monitoring, GCs, and JVM memory.
Basic monitoring: shows the trend charts of CPU utilization and memory usage in the specified time period.
Instance GC: shows the trend charts of full GCs and young GCs in the specified time period. Switch between the number of GCs and the average duration.
JVM memory: shows the trend charts of used and maximum heap memory within the specified time period from the drop-down list. Switch between the heap memory and non-heap memory.
NoteThe data collected by Application Monitoring comes from JMX, excluding some non-heap memory areas of Java processes. Therefore, the sum of heap and non-heap memory displayed in Application Monitoring differ greatly from the RES queried by running the
topcommand. For more information, see Details of JVM monitoring memory.
In the instance list section, view instance information, such as the IP address, used CPU, requested CPU, maximum CPU, CPU utilization (%), used memory, requested memory, maximum memory, memory usage (%), used disk size, maximum disk size, disk usage (%), load, number of full GCs, number of young GCs, heap memory usage, non-heap memory usage, and key metrics of each instance defined by the RED Method, including rate, errors, and duration. Note that if the maximum CPU, memory, or disk size is not configured, - is displayed in place of the CPU utilization, memory usage, or disk usage.
In the instance list, you can perform the following operations:
Click an instance IP address or click Details in the Actions column to view the instance details.
Click Traces in the Actions column to view the trace details of an instance.
Container cluster (custom data collection)
In the Quick Filter section, query charts and instances by host IP address.
In the trend charts section, view the time series of basic monitoring, GCs, and JVM memory.
Basic monitoring: shows the trend charts of CPU utilization and memory usage in the specified time period.
Instance GC: shows the trend charts of full GCs and young GCs in the specified time period. Switch between the number of GCs and the average duration.
JVM memory: shows the trend charts of used and maximum heap memory within the specified time period from the drop-down list. Switch between the heap memory and non-heap memory.
NoteThe data collected by Application Monitoring comes from JMX, excluding some non-heap memory areas of Java processes. Therefore, the sum of heap and non-heap memory displayed in Application Monitoring differ greatly from the RES queried by running the
topcommand. For more information, see Details of JVM monitoring memory.
In the instance list section, view instance information, such as the IP address, CPU utilization, memory usage, load, number of full GCs, number of young GCs, heap memory usage, non-heap memory usage, and key metrics of each instance defined by the RED Method, including rate, errors, and duration.
In the instance list, you can perform the following operations:
Click an instance IP address or click Details in the Actions column to view the instance details.
Click Traces in the Actions column to view the trace details of an instance.
Instance details
Instance overview
On the Instance Overview tab, view the number of requests, number of errors, average duration, and slow calls for the application's interfaces.
JVM monitoring
On the JVM Monitoring tab, view the GCs, memory, threads, and files of the instance.
Thread pool monitoring
Agents V4.1.x and later
The Thread Pool Monitoring tab allows you to view various metrics of the thread pools used by the application, including the initialization thread configuration, runtime thread status, and task execution status.
At the top of the tab, filter the thread pools you want to query by thread pool type and name.
Agents earlier than V4.1.x
The Thread Pool Monitoring tab allows you to view metrics such as the core thread count, current thread count, maximum thread count, active thread count, and task queue capacity of the thread pools used by the application.
Connection pool monitoring
Agents V4.1.x and later
The Connection Pool Monitoring tab allows you to view various metrics of the connection pools used by the application, including initialization thread configuration and runtime thread status.
Agents earlier than V4.1.x
The Connection Pool Monitoring tab allows you to view the maximum connection count and active connection count of the connection pools used by the application.
Host monitoring
On the Host Monitoring tab, view the metrics about CPU utilization, memory usage, disk usage, load, traffic, and packets.
Reference
For more information about Application Monitoring metrics, see Application Monitoring metrics.