Is there a problem that needs an urgent fix?Urgent fix?Get emergency help →
Blog

Practical Magento 2 guides on upgrades, security, speed and migration, written by the MageBooster team.

How Much Server Does Magento Need? RAM, CPU and Disk

Adobe gives no fixed server size for Magento, but it gives rules: requests per CPU core, PHP and database memory. Here is how to add up CPU, RAM and disk for your store.
How much server does Magento need?

In short

Adobe gives no fixed server size for Magento. It gives rules: about two uncached requests per CPU core, 2 GB of PHP memory on a single server, and database memory close to half the size of your data. Add OpenSearch, Valkey and Composer on top, and you can size the server yourself.

This is part 2 of our Magento installation series. Part 1 was the checklist before you install Magento 2. The server in our installation video below runs the whole stack on one machine.

CPU: count your requests

Adobe says one CPU core can serve around two, sometimes up to four, Magento requests that are not served from cache. Its formula is:

Cores = (expected uncached requests ÷ 2) + expected cron processes

Example: 10 requests at the same moment that miss the cache (cart, checkout, search, admin) and 2 cron processes give 10 ÷ 2 + 2 = 7 cores. Pages served by Varnish or the full page cache barely use PHP, so a good cache lowers this number a lot.

RAM: add up the parts

On one server, Magento shares the memory between several services. Adobe and OpenSearch give these rules:

PartRule
PHP2 GB memory for a single-server store (Adobe)
MariaDB / MySQLAt least close to half the size of the database (Adobe)
OpenSearchA fixed Java heap; on its own machine, half of the RAM (OpenSearch)
Valkey / RedisEnough to hold all caches in memory (Adobe)
VarnishEnough to hold your most popular pages (Adobe)
ComposerUp to 2 GB during install and upgrades; add swap if RAM is short (Adobe)

Add these up and leave room for the operating system and for PHP-FPM workers under load. A catalog that grows also grows the database and the block cache: Adobe notes the block cache grows with the number of SKUs times the number of store views.

Disk: fast and with room for backups

Adobe gives no disk size. Count the Magento code with its vendor folder, generated static files, product images, the database, OpenSearch indexes, logs, and backups that you keep on the server. Use SSD or NVMe storage: indexers, the database and cache files all read and write a lot.

One server or several?

A single server is fine to start. When traffic grows, the usual first step is to move the database or OpenSearch to their own machines. For OpenSearch on Linux, also set vm.max_map_count to at least 262144, as the OpenSearch docs require for production. Not sure where to host? Read how to choose Magento hosting.

Next in the series: how to create your Adobe access keys for repo.magento.com in three steps.

Want us to size and run the server?

We size the server from your catalog and traffic, install the 2.4.9 stack and keep it fast. See our managed Magento hosting, Magento installation and setup and speed optimization, or contact us below.

Sources

Installation guides: Magento 2.4.9 on Ubuntu Mage-OS Hyvä
Spotted a mistake on this page? Tell us and we will fix it right away.

Free Site Audit

Send your store details. We check speed, security and extensions, then reply with three quick wins within 3 working days.

Let's talk

Get a quote

Tell us about your store and we’ll reply within one working day. Prefer to chat? Say hello from WhatsApp

MageBooster Book a UnoPim demo See UnoPim live with products like yours. A new PIM or a move from Akeneo: we reply with a plan, a timeline and a quote.
✓ Official UnoPim partner✓ AI agent set up for your team✓ Connected to Magento
MageBooster Start your Hyvä project From scratch or from your current store. We reply with a project plan, a timeline and a quote.
✓ Design and structure by us✓ Hyvä-optimised server✓ Bonus modules included

MageBooster

Let us get in touch with you

Leave your details and your store address. We look at your store first and contact you within one business day, by phone, WhatsApp or email, whichever you prefer.

Partner with us