Loading..
Processing... Please wait...

Product was successfully added to your shopping cart.



Magento 2 Hardware Requirements

Magento 2 speed optimization is an important topic. Today we discuss what Magento 2 hardware requirements are for decent performance.

Disclaimer: This article is based solely on my personal experience setting up Magento 2 sites, optimizing servers and dealing with slow page loads.

Choose a server: shared, VPS or dedicated?

The first question you need to ask when you shop for Magento 2 hosting: am I okay with shared plan , should I go with virtual private server (VPS) or get a dedicated one?

My advice: It only depends on your budget. But do not be cheap here, invest some money. Prepare to spend at least $100/mo.

Go with magento 2 optimized plans only. See if a hosting company has magento 2 specialists on board - they will help in case you have a problem with your site (which will eventually happen). Here are a few companies I have heard only good things about:

  1. Nexcess. I have clients running M2 on nexcess with a great success. The cheapest plan here that suites Magento 2 will be $75/mo (SIP200).
  2. Magemojo. This company was founded and run by magento experts. They specialize exclusively on Magento 1 and Magento 2. The plan for M2 is $98/mo $300/mo (as pointed out by Pablo in comments section).

Get as much CPU power as you can. Magento 2 is a much more complicated system than Magento 1 and if your server worked well with M1 it does not mean it will keep doing so with M2.

RAM: more is better?

According to the official Magento 2 system requirements you need at least 2G of RAM.

As always get as much memory as you can. It would not hurt. Especially if you run database and web server on the same hardware.

SSD disks are the must

Choose only Solid State Disk (SSD) when you run Magento 2 in production.

M2 keeps track of many files on disk and rewrites them from time to time. Fast access to those files is important for decent performance.

I would recommend getting at least 20G of disk space to avoid constant search for what to delete to free up some space problem.

Separate server for a DB?

Yes if you can afford it.

The reason why it makes sense to run DB and web server on separate machines is that the hardware requirements are different for these types of software. Web server needs more CPU and less RAM while MySQL DB needs more RAM and less CPU.

Plus diversification makes your site less vulnerable to DDOS attacks and other security issues.

Magento 2 Hardware requirements: takeaway

Okay here is a summary of what you need to run Magento 2:

  1. Magento optimized hosting, at least $100/mo
  2. 2G of RAM
  3. 20G SSD

Did I miss anything? Are you running Magento 2 production site on those $10/mo shared plans? Let me know in comments!

  

If you find this post interesting do not hesitate to sign up for our newsletter and join the 1433 people who receive Magento news, tips and tricks regularly.

Thank You!

 

11 thoughts on “Magento 2 Hardware Requirements”
  • Konstantin Gerasimov December 6, 2024 at 1:40 pm

    Get as many cores as you could, I'd go with 80 cores.

  • Sadique November 28, 2022 at 1:18 pm

    For a Magento site with more than 10 million products, which configuration do you recommend from the below four options with ECC DDR4 RAM @128GB and NVMe SSD in all three options?
    1. 16 cores / 32 threads @ 3.4 GHz
    2. 32 cores / 64 threads @ 2.5 GHz
    3. 18 cores / 36 threads @ 3 GHz
    4. 80 cores / 80 threads @ 3 GHz

  • Infigic Technologies May 15, 2020 at 7:18 am

    Great job, This content is very very great content, I got really good information from this content and it helps me a lot, I hope it can help many people like me.

  • Magento February 29, 2020 at 1:00 am

    I am using magento with with nexcess everything working awesome

  • Sasha October 27, 2018 at 1:28 am

    If your budget is right, learn to self-manage a Linux VPS. They aren't that expensive. You just need basic linux command line knowledge, and the ability to follow step by step instructions.

    You can save a lot of money this way, but will have to invest time in gaining knowledge.

  • Konstantin Gerasimov October 25, 2018 at 9:02 pm

    @Jen thanks, I thought they cancelled it.

  • Jen October 25, 2018 at 8:58 pm

    Actually, MageMojo does have $98/month plans.

    Starter:
    2,500 Included Sessions
    25G Base Disk
    1 Dev Site
    1 Hour Support SLA
    Ticket Support
    $98/mo

    The fixed resource plans start at $300:
    StratusRBP 4

    4 Cpu Cores
    8GB Memory
    150GB Disk
    200GB CDN
    15 Minute Support SLA
    Ticket Support
    $300/mo

  • Syed September 29, 2018 at 7:56 am

    Hello Konstantin,
    Great article. I just wanted to know can we run Magento 2 on shared hosting if our budget is tight? .

  • Konstantin Gerasimov April 5, 2018 at 7:53 pm

    @Pablo

    updated.

  • Pablo April 4, 2018 at 7:39 am

    Hi Konstantin,
    Nice article! But, MageMojo doesn't offer $98/mo plan anymore. The cheapest plan you'll find there starts $300/mo.

    Regards!
    Pablo

  • طراحی سایت در تبریز August 7, 2017 at 5:06 pm

    57/5000
    Thank you
    Excellent information from CMS Magento