Container CPU and Memory Usage
- Use an SSH tool such as Xshell to log in to the server where the video stream cloud phone is deployed as the cloud phone O&M user (for example, root).
- Switch to the root user.
# su - root
- Run the following command to access the Docker container and check the CPU and memory usage. In the command, {android_id} indicates the ID of the started instance.
# docker exec -it android_${android_id} sh - Run the following command to query the CPU and memory usage of the processes in the Docker container. See the following figure.
# top

If the memory usage of some processes is higher than 85% and the CPU usage remains higher than 90%, check whether the processes are abnormal or contact Huawei technical support.
The parameter description is the same as that of the host CPU and memory usage.
To view the real-time information about the CPU load and memory usage, run the following command:# ctop

ctop is a resource monitoring tool managed by Docker. If ctop is not installed, download ctop 0.7.5 from the following address, rename the downloaded binary file ctop, and copy it to the /usr/bin directory. Download address: https://github.com/bcicen/ctop/releases/download/v0.7.5/ctop-0.7.5-linux-arm64
Parameters in the ctop command output are described as follows:- NAME: container name
- CID: container ID
- CPU: CPU usage of the container
- MEM: memory usage of the container
- NET RX/TX: volume of data transmitted and received by the container network
- IO: I/O read and write data volume of the container drive
- PIDS: ID of the process where the container is located
Parent topic: Performance Monitoring