Monitoring system resources helps ensure your server is running efficiently and prevents downtime. This guide explains how to check CPU, RAM, and disk usage on Ubuntu servers.
top
Displays real-time CPU usage and running processes.
htop
Provides a more user-friendly view (install with sudo apt install htop -y).
free -m
Shows memory usage in MB.
vmstat
Displays memory, CPU, and process statistics.
df -h
Shows disk usage in human-readable format.
du -sh /var/log
Displays the size of a specific directory (e.g., logs).
iostat
Displays CPU and disk I/O statistics (install with sudo apt install sysstat -y).
ps aux
Lists all running processes with resource usage.
glances
Install with sudo apt install glances -y for a comprehensive system monitoring tool.
Note: HostPalace servers are optimized for performance, but monitoring resources ensures smooth operation and helps identify issues early.