Introduction to the CloudMonitor agent for Java
Updated at:
The CloudMonitor host monitoring service monitors your servers by installing an agent on them.
Important The CloudMonitor agent for Java is no longer maintained. Use the C++ version. For more information, see Install and uninstall the CloudMonitor agent.
Installation location
- Linux: /usr/local/cloudmonitor
- Windows: C:\Program Files\Alibaba\cloudmonitor
Process information
After the plugin is installed, your server runs the following two processes:
- /usr/local/cloudmonitor/jre/bin/java
- /usr/local/cloudmonitor/wrapper/bin/wrapper
Port description
- Listens on TCP port 32000 of the local host for the daemon process to access.
- Accesses TCP ports 3128, 8080, and 443 on the remote server to send heartbeat and monitoring data. Port 443 is used for hosts that are not on Alibaba Cloud, and port 3128 or 8080 is used for hosts that are on Alibaba Cloud.
- Accesses HTTP port 80 on the remote server to upgrade the CloudMonitor agent.
Plugin logs
- Monitoring data logs are located in /usr/local/cloudmonitor/logs.
- Logs for startup, shutdown, and the daemon process are located in /usr/local/cloudmonitor/wrapper/logs.
- You can adjust the log level by modifying the /usr/local/cloudmonitor/config/log4j.properties configuration file.
Resource usage
- The /usr/local/cloudmonitor/wrapper/bin/wrapper process uses about 1 MB of memory and consumes almost no CPU resources.
- The /usr/local/cloudmonitor/jre/bin/java process uses about 70 MB of memory and 1% to 2% of a single-core CPU.
- The installation package is 70 MB. After installation, the agent uses about 200 MB of disk space.
- Logs use a maximum of 40 MB of disk space. If the logs exceed 40 MB, they are purged.
- Monitoring data is sent every 15 seconds and uses about 10 KB of internal network bandwidth.
- Heartbeat data is sent every 3 minutes and uses about 2 KB of internal network bandwidth.
External dependencies
- The CloudMonitor agent for Java is written in Java and has a built-in JRE 1.8.
- Java Service Wrapper is used for the daemon process, startup, and Windows service registration.
ss -scommand is used to collect the number of TCP connections. If your system does not have this command, install iproute.
Installation instructions
For more information, see Install the CloudMonitor agent for Java.
Installation on hosts not on Alibaba Cloud
- Log on to the CloudMonitor console.
- In the navigation pane on the left, click Host Monitoring.
- Click the Install on Host not on Alibaba Cloud button at the top of the page. On the Installation Guide page, you can select a monitoring type and an operating system to view the corresponding installation method.
Is this page helpful?