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
Check live load and memory:
htopuptimefree -hCheck disk space and I/O wait:
“Slow” can mean CPU, disk at 100%, heavy SQL or network latency. Measure layer by layer instead of rebooting blindly.
Check live load and memory:
htopuptimefree -hCheck disk space and I/O wait:
Migration is more than copying folders: clone data, test on the new VPS, then flip DNS when it responds. This flow avoids nasty surprises.
On the new VPS install the same stack (Nginx/Apache, PHP/Node, DB) and matching paths/users.
# Example: sudo apt install -y nginx mysql-serverCopy files from the old VPS (dry-run first if you prefer):
A dedicated Valheim server keeps your world online 24/7. On Ubuntu you use SteamCMD, open UDP and keep the process in screen or a unit file.
Install 32-bit deps and SteamCMD:
sudo dpkg --add-architecture i386sudo apt updatesudo apt install -y lib32gcc-s1 steamcmd screenFiveM wants stable CPU, solid networking and open ports. A VPS dedicated to the game avoids noisy-neighbor lag from shared hosting.
Update the system and install basic dependencies:
sudo apt update && sudo apt upgrade -ysudo apt install -y xz-utils git wget curl screenn8n connects APIs and automates tasks (webhooks, CRMs, alerts). Self-hosting on a VPS avoids cloud-plan limits.
Create a data folder and start n8n:
BookStack is a wiki organized as books and chapters. Ideal for internal team docs on your own VPS.
Create Compose with App + MySQL:
Jellyfin is a free media server for movies, shows and music. On a VPS with enough disk you host your library and stream from anywhere.
Prepare config and media folders:
mkdir -p ~/jellyfin/{config,cache,media}# Copy or mount your files into ~/jellyfin/mediaStart Jellyfin (port 8096):
Vaultwarden is a light Bitwarden-compatible server. Perfect for keeping passwords on your own VPS instead of SaaS.
Create the Compose project:
Ghost is a modern CMS for blogs and newsletters. On a VPS you run it with Docker and expose it with Nginx + SSL.
Ensure Docker is running:
docker --versionsudo systemctl enable --now dockerCreate a folder and start Ghost on port 2368:
Wrong time breaks TLS, logs and cron. chrony is the recommended NTP client on modern Ubuntu to keep the VPS clock aligned.
Install chrony and start the service:
sudo apt updatesudo apt install -y chronysudo systemctl enable --now chronyReview NTP sources (defaults are usually fine):