Docs / Server Management / How to Monitor Server Resource Usage with htop

How to Monitor Server Resource Usage with htop

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 150 views · 1 min read

What Is htop?

htop is an interactive process viewer for Linux. It provides a real-time, color-coded overview of CPU, memory, and process activity — a much better experience than the basic top command.

Installation

sudo apt install -y htop    # Ubuntu/Debian
sudo dnf install -y htop    # Rocky/Alma

Launch

htop

Understanding the Display

Header Section

  • CPU bars — one bar per core. Colors: blue=low priority, green=normal, red=kernel
  • Memory bar — green=used, blue=buffers, yellow=cache
  • Swap bar — used swap space
  • Tasks — total, running, sleeping processes
  • Load average — 1, 5, and 15 minute load averages

Process List

ColumnMeaning
PIDProcess ID
USEROwner
PRI/NIPriority / Nice value
VIRTVirtual memory
RESPhysical RAM used
SState (S=sleeping, R=running)
CPU%CPU usage
MEM%Memory usage
TIME+Total CPU time

Keyboard Shortcuts

KeyAction
F1Help
F2Setup (customize display)
F3 or /Search for a process
F4Filter processes
F5Tree view
F6Sort by column
F9Kill a process
F10 or qQuit
tToggle tree view
HHide user threads

Tips

  • Press t to see process trees — helpful for understanding parent-child relationships
  • Press M to sort by memory, P to sort by CPU
  • Use F4 to filter for specific process names

Was this article helpful?