Shared hosting is a web hosting service where multiple websites reside on one physical server, sharing its CPU, memory, and disk space. You pay a low monthly fee, the host manages the server, and your site runs alongside hundreds of others. A VPS (Virtual Private Server) is a single physical server divided into several virtual machines, each with its own dedicated resources and operating system. This article explains how shared hosting works, its limits, and the signs that it is time to move to a VPS.
Formula
Bandwidth (GB/month) = (Monthly visits × Average page size in MB × Page views per visit) ÷ 1024.
Peak requests per second = (Monthly visits × 1.5) ÷ 86,400.
- Monthly visits – total sessions to your site in a month.
- Average page size – total bytes of HTML, CSS, JavaScript, and images for a typical page, in megabytes.
- Page views per visit – average number of pages a visitor loads per session.
- Bandwidth – data transferred from your server to visitors, in gigabytes per month.
- Requests per second – approximate peak HTTP requests your server must handle, assuming traffic is not evenly spread.
Worked Example
Using the default values: 10,000 monthly visits, 2 MB average page size, 3 page views per visit.
Bandwidth = (10,000 × 2 × 3) ÷ 1024 = 60,000 ÷ 1024 ≈ 58.6 GB/month.
Peak requests per second = (10,000 × 1.5) ÷ 86,400 = 15,000 ÷ 86,400 ≈ 0.17 req/s.
The calculator shows 58.6 GB/month and 0.2 req/s. This is a rough estimate; real usage varies with caching, bots, and file types.
How Shared Hosting Works
In shared hosting, a single server runs a web server (like Apache or Nginx), a database server (MySQL or MariaDB), and an email service. The hosting provider installs a control panel (cPanel, Plesk, or a custom panel) that lets you manage domains, files, databases, and email. Your account is isolated by software permissions, not by hardware. The server’s CPU cores, RAM, and disk I/O are shared among all tenants. The provider sets limits on CPU time, memory usage, and inodes (file count) to prevent one site from starving others. You get a shared IP address unless you pay for a dedicated one.
Resource Limits and Fair Use
Shared hosts enforce “fair use� policies. Typical limits include:
- CPU time – usually a percentage of one core, e.g., 1–2% of the total server CPU.
- Memory – often capped at 1–2 GB of RAM per account.
- Entry processes – the number of concurrent PHP processes you can run.
- I/O operations – disk read/write speed capped per second.
- Inodes – total files and folders, often 50,000–200,000.
If you exceed these, the host may throttle your site, show a “508 Resource Limit Reached� error, or temporarily suspend the account. These limits are invisible until you hit them, which is why shared hosting is fine for small sites but fails under growth.
When to Upgrade to a VPS
You should consider a VPS when you see one or more of these signs:
- Frequent resource limit errors – your site returns 508 or 503 errors during traffic spikes.
- Slow page loads – time to first byte (TTFB) is consistently above 1 second, even after optimization.
- Traffic growth – your monthly visits exceed roughly 50,000–100,000, or you run an online store with heavy database queries.
- Need for custom software – you want to install a specific PHP version, a caching engine like Redis, or a different web server.
- Security isolation – a neighbor’s compromised site can affect yours; a VPS gives you an isolated environment.
- Root access – you need to change server configuration files, set up cron jobs, or manage firewall rules.
If you only need more storage or bandwidth, upgrading to a better shared plan or a “cloud� shared plan may be cheaper. But if you need consistent performance or custom software, a VPS is the right step.
VPS vs Shared: Key Differences
A VPS uses a hypervisor (like KVM or Xen) to divide a physical server into virtual machines. Each VM has a guaranteed slice of CPU, RAM, and disk. You get root access, your own OS, and the ability to reboot independently. Shared hosting gives you a control panel but no root access, and your resources are not guaranteed. The table below summarizes the main differences:
- Performance – VPS is more consistent; shared is variable.
- Cost – VPS typically $10–$50/month; shared $2–$15/month.
- Management – Shared is fully managed; VPS can be unmanaged (you administer it) or managed (host does it for a fee).
- Scalability – VPS can be resized with a reboot; shared requires a plan change.
- Security – VPS isolates you from neighbors; shared relies on the host’s server-wide security.
Common Problems with Shared Hosting
The most common issues are:
- Neighbor noise – another site on your server gets a traffic spike and consumes CPU, slowing your site.
- IP reputation – if a neighbor sends spam, the shared IP may get blacklisted, affecting your email deliverability.
- Database limits – many shared hosts cap the number of concurrent MySQL connections, causing “too many connections� errors.
- No long-running processes – background tasks like video encoding or large imports are killed after 30–60 seconds.
- Limited cron frequency – you may only be allowed to run cron jobs every 15 minutes, not every minute.
If you encounter these, a VPS solves them because you control the process limits and can run any software.
How to Choose a VPS Plan
When you decide to upgrade, look for:
- RAM – 2 GB is a starting point for a small WordPress site; 4 GB for WooCommerce or a membership site.
- CPU cores – 2 vCPUs are enough for most sites; choose 4 if you run heavy cron jobs or image processing.
- SSD storage – always choose SSD over HDD for faster database queries.
- Bandwidth – most plans include 1–4 TB, which is ample for 100k visits.
- Managed vs unmanaged – if you don’t know Linux commands, get a managed VPS or use a control panel like CyberPanel or Vestacp (free) or cPanel (paid).
Start with a plan that gives you about 2× your current usage headroom. You can always upgrade later.
Frequently Asked Questions
Is shared hosting safe for a small business website? Yes, if you keep software updated and use a reputable host. The main risk is a neighbor’s site being hacked, but hosts isolate accounts with permissions. Use strong passwords and enable two-factor authentication on your control panel.
Can I upgrade from shared to VPS without downtime? Most hosts offer a migration service. You can also do it yourself by backing up your files and database, setting up the VPS, and changing your DNS. Expect a brief propagation period of a few hours to 24 hours.
How much traffic can shared hosting handle? There is no fixed number. A well-optimized static site can handle 100k visits a month on shared, while a dynamic WordPress site with many plugins may struggle at 10k. Watch your resource usage graphs in the control panel.
What is the difference between a VPS and a dedicated server? A dedicated server is one physical machine entirely for you. A VPS is a virtual partition of a physical server. Dedicated gives you all hardware resources but costs more and requires more maintenance. VPS is a middle ground.
Do I need a VPS if I use a CDN? A CDN reduces bandwidth and speeds up static content delivery, but it doesn’t fix CPU or database limits. If your origin server is overloaded, a CDN won’t help dynamic requests. You may still need a VPS.
Can I run multiple websites on a VPS? Yes, you can host unlimited sites as long as resources allow. Use virtual hosts (Apache) or server blocks (Nginx). Each site can have its own domain and SSL certificate.
Related
Formula used
in t | Monthly visits | visits | 10000 | 0 | 10000000 in p | Average page size | MB | 2 | 0.1 | 50 in v | Page views per visit | pages | 3 | 1 | 50 out bw | Estimated bandwidth | GB/month | (t * p * v) / 1024 | 1 out req | Requests per second (peak) | req/s | (t * 1.5) / 86400 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Valheim Server Not Showing in Community List Fixes
- DisplayPort vs HDMI: Which Cable Should You Use?
- Soundbar vs 2.1 Speaker System: Which Is Better?
- MySQL Dump Import: Fix Common Errors
- Mouse Moving on Its Own? Causes & Fixes
- Slack Channels for Construction Projects: Setup Guide