Starting points by workload
These are first guesses for a new server, not promises. Your code, plugins and data decide the real figure.
| Workload | vCPU | RAM | Disk | Plan to try first |
|---|---|---|---|---|
| Telegram bot, cron scripts, small static site | 1 | 1 GB | 30 GB | Nano |
| One WordPress site with a page cache, a small API | 1 | 2 GB | 30 GB | Starter |
| Two small sites, or one with background jobs | 2 | 2 GB | 40 GB | Basic |
| App + PostgreSQL or MySQL, several small sites, n8n | 2 | 4 GB | 60 GB | Standard |
| Compiling, image processing: much CPU, little memory | 4 | 4 GB | 80 GB | Plus |
| WooCommerce or OpenCart shop, database-heavy app | 4 | 8 GB | 100 GB | Professional |
| Windows Server, two or three remote desktop users | 4 | 8 GB | 100 GB | Professional |
| CI builds with many containers, several client projects | 6 | 12 GB | 120 GB | Business |
| Accounting system plus SQL server, several users | 8 | 16 GB | 160 GB | Business Pro |
| Large database kept mostly in memory | 12 | 32 GB | 240 GB | Enterprise |
Add it up before you buy
If the software is known, a sum is better than a guess. For a PHP site on one server:
- operating system and SSH, logging, cron: about 400 MB
- MariaDB with a 512 MB buffer pool, with overhead: about 800 MB
- PHP-FPM, 10 workers of 60 MB each: 600 MB
- Redis for object cache: 128 MB
That is roughly 1.9 GB. Add a quarter to a third for the file cache and for peaks, and you land near 2.5 GB. Starter and Basic (2 GB) would be tight. There is no 3 GB plan, so the answer is Standard (4 GB) at ₼49.90 a month with public IP (₼10 of that); the step up from Basic costs ₼12. The page on VPS cost shows the price of every such step.
Measure memory
free -h
ps -eo pid,comm,rss --sort=-rss | head -n 11
sudo journalctl -k | grep -i 'out of memory'In free, look at available, not at free. Linux uses spare memory as a file cache and gives it back on demand, so a low "free" figure is normal. Watch two things: "available" during your busiest hour should stay above 15–20% of the total, and the third command should print nothing. Any line there means the kernel killed a process because memory ran out.
The rss column is in kilobytes. Processes that share memory, such as PHP or PostgreSQL workers, are counted several times, so treat the sum as an upper limit.
Measure processor time
nproc
top -bn1 | head -n 5
vmstat 5 5Compare the load average with nproc. A 15-minute load that stays above the number of vCPUs means tasks are waiting. Then read the CPU line in top:
- us high: your program is computing. Faster code helps, or more vCPU.
- wa high: processes wait for the disk. More vCPU will not help.
- st high for long periods: the host is busy with other machines; report it to your provider.
A single-threaded program cannot use a second core. If one process sits at 100% while the rest are idle, extra vCPUs change nothing.
Keep a week of history with sar
One look at 11:00 on Tuesday proves little. sysstat records a sample every ten minutes:
sudo apt update && sudo apt install -y sysstat
sudo sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat
sudo systemctl enable sysstat
sudo systemctl restart sysstatAfter a few days:
sar -u # processor, today
sar -r # memory, today (kbavail is the useful column)
sar -W # swapping: pswpin/s and pswpout/s should be near 0
sar -q # load average
sar -r -f /var/log/sysstat/sa15 # the 15th of this monthNote the peak and the typical value. Size for the peak you must survive, plus a margin of about 25%.
Measure the disk
df -h /
df -i /
iostat -xz 5 3
sudo du -xh --max-depth=2 /var | sort -h | tailIgnore the first block of iostat: it is an average since boot. In the next ones, r_await and w_await are the waiting times in milliseconds. If they stay in the tens on an NVMe disk while users complain, find the process with sudo pidstat -d 5. Check df -i too: a disk can be full of small files while gigabytes are still free.
Signs of the wrong size
| What you see | Likely meaning | First action |
|---|---|---|
| Out-of-memory lines, MySQL restarting by itself | Too little RAM, or too many workers | Lower worker count, then add RAM |
Constant pswpin/pswpout activity | Working set does not fit | Add RAM |
Load above vCPU count, us high | Too little CPU or slow code | Profile, then add vCPU |
wa high, database slow | Data not cached, or too many writes | Larger database cache, check queries |
| Available RAM above 60% at peak, all month | Too large | Choose a smaller size for the next server |
| Load under 0.2 on 4 vCPU, all month | Too many cores | Combine projects on this server |
Swap: a cushion, not memory
A small swap file stops a short peak from killing your database:
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabIf sar -W shows it in use every hour, buy RAM instead. More CPU, RAM or disk can be requested in the panel one by one, so you do not need to change everything at once; compare the cost with the next plan. For database servers, read the separate notes on PostgreSQL and MySQL memory; for shops, the page on e-commerce servers.
On Windows Server, use Resource Monitor (resmon): watch "Available" memory and "Hard Faults/sec" at peak, and the disk queue length.
RAM and sizing questions
Is 1 GB of RAM enough for a VPS?
For a bot, a reverse proxy, a static site or a small script, yes. For WordPress with its database it is too little, and Windows Server needs at least 4 GB, which means the Standard plan.
Why does my server show almost no free memory?
Linux fills unused memory with file cache, which is released when programs need it. Read the "available" column of free: that is the amount you can really use.
Should I add CPU or RAM first?
Look at the evidence. Swapping or out-of-memory messages call for RAM; a load above the core count with high user time calls for CPU; high iowait calls for neither until you have checked the disk and the database cache.
How long should I measure before resizing?
At least one full week, so that weekends, backups and reports are included. For shops and accounting, include a month end or a sale day.
How much headroom should a VPS have?
About a quarter above the measured peak. Since resources can be added later, more than that is usually money spent too early.