Skip to content
Servers and Linux2 min read

What is RAM?

Short answer

RAM (random access memory) is very fast temporary memory where the server keeps the programs and data it is working on right now, such as PHP processes and the database. The more simultaneous visitors and the heavier the app, the more memory a site needs; when it runs out, the site slows down or throws errors.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What uses memory on a website?
  2. A worked example
  3. memory_limit vs account memory
  4. Signs you’re running out
  5. On ArabyHost

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_limit in 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.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.