10 Ways to Make a VPS Faster
Find what is slowing a VPS down before changing anything, then fix it: memory, disk, services, web server, database, caching, and when a bigger plan is the answer.
3 min readBy Shailabh
Reviewed by the AmazingRDP technical team

Reached the limit of your plan? Compare our Linux VPS sizes; moving to a bigger one is done by ticket. See Linux VPS from $6.99
A slow server has a cause, and the cause is nearly always one of four things: not enough memory, a busy processor, a slow or full disk, or one badly behaved program. Guessing wastes time. Measure first, then fix what the numbers show.
1. Measure before you change anything
| Look at | Linux | Windows |
|---|---|---|
| Processor and memory by program | htop | Task Manager, Details tab |
| Memory in total | free -h | Task Manager, Performance |
| Disk space | df -h | File Explorer, or Get-PSDrive |
| Disk activity | iostat -x 2 (package sysstat) | Resource Monitor, Disk |
| Load over time | uptime, vmstat 2 | Performance Monitor |
Look while the server is slow, not afterwards.
2. Fix memory first
When memory runs out, the system moves data to disk (swap, or the page file) and everything crawls. If free -h shows little available memory and swap in use, find the biggest consumers and reduce them, or add memory. A server with no swap at all kills programs instead; a small swap file is a sensible safety net:
sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile
sudo mkswap /swapfile && sudo swapon /swapfile
3. Stop what you do not use
systemctl list-units --type=service --state=running
sudo systemctl disable --now servicename
Every running service takes memory and may open a port. On Windows, check Services and the start-up programs. On a server, a desktop environment that nobody looks at is often the largest saving.
4. Keep the system updated
Updates bring performance fixes along with security fixes: sudo apt update && sudo apt upgrade, or Windows Update. Restart when a new kernel asks for it.
5. Keep the disk from filling
A disk above about 90% slows databases and can stop services. Find the space:
sudo du -xh / --max-depth=2 | sort -h | tail -20
sudo journalctl --vacuum-time=14d
Old logs, package caches and forgotten backups are the usual finds. On Windows, see how to free and extend the C drive.
6. Tune the web server
- Switch on compression (gzip or Brotli) and HTTP/2.
- Let the web server deliver images, CSS and scripts directly, with long cache times.
- Match the number of PHP workers to your memory: each one takes a share, and too many push the server into swap.
7. Tune the database
- Give MySQL or MariaDB a sensible
innodb_buffer_pool_size: about half the memory on a server that mainly runs the database, less on a shared one. - Switch on the slow query log and add indexes for the queries it catches. One missing index can cost more than any setting.
8. Cache
The fastest work is work not done. A page cache for a content site, an object cache such as Redis for a busy application, and PHP's OPcache (on by default in current versions) each remove repeated effort.
9. Move static load off the server
A content delivery network serves images and files from locations near each visitor and takes that traffic away from your VPS. For a site with visitors in many countries it also shortens loading times more than any server tuning.
10. Know when to upgrade
If the processor sits near 100% or memory is full during normal use, after the steps above, the plan is too small. Tuning cannot create resources. Likewise, check the basics of the plan: the right location for your visitors, and SSD or NVMe storage.
What does not help
- "Optimiser" and "booster" programs. They change little and sometimes break things.
- Copying long lists of kernel settings from the internet without knowing what each does.
- Restarting on a schedule to hide a memory leak. Find the leaking program.
Our Linux VPS and Windows VPS plans can be moved to a bigger size by ticket. Related: Windows Server vs Linux server.
Questions
Why is my VPS slow?
Usually too little memory, a busy processor, a full or slow disk, or one misbehaving program. Measure with htop or Task Manager while it is slow.
How do I check what is using memory on a VPS?
On Linux run htop or free -h. On Windows open Task Manager.
Does adding swap make a VPS faster?
No. Swap prevents crashes when memory runs out, but using it is slow. More memory or lighter software is the fix.
When should I upgrade my VPS?
When processor or memory are at their limit during normal use after you have removed what is not needed.