Contents
The key difference: RAM is wiped when the server stops and is far faster than a disk, while disk space stores files permanently. When a page is requested, the server reads files from disk, runs the code in memory and keeps frequently used data there so it can serve it faster next time.
What uses memory on a website?
| Component | Note |
|---|---|
| A PHP process per request | Usage multiplies with simultaneous visitors |
| MySQL/MariaDB database | Keeps frequently used tables and indexes in memory |
| Caches such as OPcache and Redis | Spend memory to save CPU time |
| Node.js and Python apps | Stay in memory for as long as they run |
A worked example
Suppose each PHP request on a WordPress site needs 64 MB, and 10 visitors hit uncached pages at the same moment. The site needs roughly 640 MB at that instant. If those pages are served from cache, PHP doesn’t run at all and usage drops sharply. That’s why caching saves more memory than many upgrades do.
memory_limit vs account memory
memory_limitin php.ini is a cap for one PHP script.- Account memory on shared hosting is the total of all your processes together. Every script can stay within its own cap while the account as a whole hits its limit because too many run at once.
Signs you’re running out
- PHP’s Allowed memory size exhausted message.
- 503 or 508 errors during traffic spikes.
- A Node.js or Python app stopping suddenly without a clear message.
- A very slow WordPress dashboard with many plugins installed.
On ArabyHost
Every ArabyHost account is isolated with CloudLinux CageFS and has its own resource limits (LVE), memory included, so no single account can take the whole server’s memory at others’ expense. Compare plan resources on the pricing page, and use the hosting calculator to estimate what your site needs. To keep usage down on WordPress sites, the LiteSpeed web server and the LiteSpeed Cache plugin serve cached pages without running PHP on every request.
FAQ
Does RAM affect site speed?
Yes, when there isn't enough: requests wait or fail and apps may crash. If you already have enough, adding more won't make a single page faster; CPU and caching matter more then.
What's the difference between RAM and disk space?
RAM is fast temporary memory that's wiped when the server stops and is used to run programs. Disk space is permanent storage that keeps files and databases across restarts.
How do I know my site needs more memory?
Look for out-of-memory errors in the PHP log, 503 or 508 errors at peak times, and Node.js or Python apps stopping suddenly. Before upgrading, try caching and removing heavy plugins.