How to monitor server resources from the command line
Updated 7/20/2026
Before installing complex tools, a few commands immediately tell you how the server feels.
CPU and processes
top
htop # more visual, install it with: apt-get install -y htop
RAM memory
free -h
Look at the "available" column: how much RAM is really available.
Disk space
df -h # space on partitions
du -sh /var/* # what each directory uses
System load
uptime
The "load average" numbers show the load over 1, 5 and 15 minutes. As a rule of thumb, a value above the number of CPU cores means the server is overloaded.
What is listening on the network
ss -tulnp
When you need more
For graphs and history, move to a visual tool like Netdata or the one-click app Glances. If the server is constantly overloaded, consider a bigger plan.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to monitor database performance
See slow queries, connections and database usage, to keep it fast.
Updated 7/20/2026Monitoring & loggingHow to monitor disk space and avoid running out
A full disk stops services and corrupts data. Here is how to track space and get alerts in time.
Updated 7/20/2026Monitoring & loggingHow to monitor a website and SSL expiry
Do not let your site go down or your SSL certificate expire without knowing. Here is how to track them automatically.
Updated 7/20/2026