Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Diagnose a Slow Website on a VPS

“Slow” can mean CPU, disk at 100%, heavy SQL or network latency. Measure layer by layer instead of rebooting blindly.

Steps

  1. Check live load and memory:

    htop
    uptime
    free -h
  2. Check disk space and I/O wait:

    df -h
    iostat -xz 1 5
    dmesg | tail
  3. Measure TTFB from outside and read the web server logs:

    curl -o /dev/null -s -w "ttfb=%{time_starttransfer} total=%{time_total}\n" https://your-domain.com/
    sudo tail -n 50 /var/log/nginx/access.log
    sudo tail -n 50 /var/log/nginx/error.log
  4. If you use MySQL/MariaDB, inspect threads and slow queries:

    sudo mysqladmin processlist
    # Enable slow_query_log if needed and review the log file

Tips

  • High iowait + full disk: clean logs or upgrade disk/IOPS.
  • Page/object cache and a CDN only help once the origin is not saturated.

ext step

More CPU/RAM when the diagnosis points to resources: Deploy your Cloud VPS.

Related guides