How to check load on Linux VPS?

If your website or application on a virtual server running Linux (Ubuntu, Debian, AlmaLinux, Rocky Linux, etc.) has started working slowly or returning timeout errors, the first step is to check resource consumption. In this basic guide for beginners, we will look at how to connect to the server via SSH and use simple utilities like top or htop in real-time to determine which specific processes are overloading the system.

Step 1. Connecting to the server via SSH

To access the command line of your Linux VPS, use the SSH protocol:

  1. Open Terminal (on macOS or Linux) or PowerShell / Command Prompt (on Windows 10/11).
  2. Enter the connection command, replacing SERVER_IP with the actual address of your VPS (you can find it in your RX-NAME account dashboard): ssh root@SERVER_IP
  3. Upon the first connection, confirm saving the security key by typing yes and pressing Enter.
  4. Enter the root user password (note: while entering the password, characters are not displayed in the terminal for security reasons — simply type or paste the password using the right mouse button and press Enter).

Step 2. Monitoring resources using the built-in top utility

The top utility is installed by default in every Linux distribution. To run it, simply type the following in the terminal:

top

A dynamic table that updates every few seconds will appear on the screen. What to pay attention to first:

  • Load Average (in the upper right corner): Three numbers (e.g., 0.45, 0.60, 0.52) showing the average system load over the last 1, 5, and 15 minutes. If these values consistently exceed the number of CPU cores on your VPS (for example, showing 4.50 on 2 cores), the server is overloaded.
  • %Cpu(s) row: Shows CPU time distribution. The us parameter is load from user programs (web server, PHP, databases), sy is system processes, wa is input/output wait time (a high wa value indicates disk subsystem load), and id is the percentage of free (idle) CPU resources.
  • MiB Mem row: Displays total RAM (total), free (free), used (used), and available memory for programs (avail Mem).

Useful hotkeys inside top:

  • Press Shift + P — sort processes by CPU load (%CPU).
  • Press Shift + M — sort processes by RAM consumption (%MEM).
  • Press Q — exit the monitor back to the regular command line.

Step 3. Convenient analysis via the enhanced htop monitor

If the standard top seems inconvenient, use the htop utility — it features visual color bars for each CPU core and memory, and supports mouse control.

  1. Install and run htop (if the utility is not already installed):

    # For Ubuntu / Debian:
    apt update && apt install htop -y && htop


    # For AlmaLinux / Rocky Linux / CentOS:
    dnf install epel-release -y && dnf install htop -y && htop

  2. At the top of the screen, you will see graphical loading bars for each core (1, 2…), the Mem bar (RAM), and the Swp bar (swap file).
  3. In the table below, processes are automatically sorted by CPU load. The Command column shows the exact name of the service or script (e.g., mysqld, php-fpm, apache2, or nginx) consuming the most resources.
  4. To exit, press F10 or Q.

How to quickly check free disk space? Sometimes a website stops working not because of CPU or RAM, but because the disk is full. Exit top/htop and run the command df -h — in the Use% column, you will see the percentage of partition / utilization.

What to do if you detect high load?

If web server or database services lead the process list due to increased website traffic or heavy scripts, you can optimize caching or instantly upgrade your VPS plan (add CPU cores and RAM) in your account dashboard. If you need assistance with diagnostics, please contact our support team:

  1. Online Chat on the website: Write to us in the chat widget directly on our website (the fastest way to connect).
  2. Telegram Bot / Chat: Contact our support team on Telegram for prompt assistance.
  3. Email: Send an email with your VPS IP address and a screenshot or log snippet of top/htop output to technical support.
Leave a Reply 0

Your email address will not be published. Required fields are marked *