• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

RAM or CPU? Which is more important for web-servers?

WordPress hosting May 7, 2019 by Johnny 8 Comments

Should you get a regular VPS or CPU-optimized, or memory-optimized instance? Many of the biggest VPS companies (Linode, Digital Ocean, Google Cloud, Amazon) now offer several different instance types. But how do you know which one is the best for your web server?

My recommendations below are intended for WEB-SERVER use only. I do not account for gaming server, bitcoin mining, or any other kind of server use.

 

STANDARD plans are best for general use

Don’t know what you need? If you have to ask this question, I highly recommend the general plans for you. They typically come with a CPU/MEMORY ratio of 1:2. Which is 1 CPU CORE for every 2 GB of ram. I find it to be a nice balance with enough CPU to process things and enough ram to store frequent processes and database queries.

Again, if you don’t know what you’re doing…stick to the standard general plans and then you can always upgrade from there depending on your resource usage. Standard plans are fine for 99% of the sites out there. I’ve never ran into a scenario where we really need one of the more extreme plans like CPU-optimized or MEMORY-optimized.

Example sites for STANDARD plans:

  • Any site, really.
  • Blogs, business, ecommerce, etc.

 

CPU-OPTIMIZED plans are best for dynamic processes

Are you CONSTANTLY running many dynamic processes and almost none of it is cacheable to storable in memory? Going with more CPU cores or a dedicated-CPU plans are a great idea here. Do note that having more CPU cores means you probably get a faster burst whereas having a dedicated CPU means your cores aren’t shared with anyone else (theoretically) and less subject to noise from neighbors. The former is better if you simply like having faster overall speed. The latter is better if you need guaranteed around-the-clock performance. It’s like having to share 4 laundry machines with neighbors vs having only 1 but it’s all yours.

Good candidates for high CPU usage are any sites with heavy processing and/or mostly showing private (uncacheable) dynamic content.

Example sites for CPU-optimized plans:

  • Sites with many [uncacheable] logged-in members. Membership sites.
  • Sites with lots of recent numbers, scores, tickers, stocks, etc.
  • Some ecommerce sites.
  • Any site not using much caching and preferring to process everything dynamically.

 

MEMORY-OPTIMIZED plans are great for caching processes

Do you have tons of cached database queries or have a need to cache many items in memory? Do you really have items that need to be stored in memory because SSD’s and dynamic processing isn’t fast enough? Memory-optimized plans may be the right choice for you. Great for heavy object caching. Great for caching many items and/or items with short expiry times.

Example sites for MEMORY-optimized plans:

  • Forums.
  • Can also be any sites with ecommerce, logged-in members, or also numbers.
  • Any site preferring to short-term cache items instead of processing them dynamically.

Share this post:

Share on FacebookShare on TwitterShare on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress hosting Popular Recommended

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Is WordPress insecure? (no, it isn’t!)

BeyondHosting Review – REALLY BAD MANAGED VPS

Comments Sticky Moderate (WPJ plugin)

How to HARDEN a Linux web server

What’s a CDN? (Content Delivery Network) And do you need it?

LiveCanvas HTML/CSS pagebuilder for WordPress – REVIEW

Reader Interactions

8 Comments

  1. Sunil

    August 16, 2019 at 12:17 am

    Nice and clear details.

    Reply
    • Johnny

      August 17, 2019 at 11:04 am

      Hey thanks, man…and nice to see you on here. 🙂

      Reply
  2. Silva

    October 17, 2019 at 7:04 pm

    belo post

    Reply
  3. Jack

    January 13, 2020 at 6:50 pm

    Thinking of a cpanel server with multiple sites, would a general vps run slower than cpu optimised?

    Eg digital ocean use around 2.3mhz on general, 2.6-2.7!9! Optimised.
    Then an e3 server can do 3.3 or more.

    Do a cpanel server on 2 cores e3 could be faster?

    Does speed affect websites?

    Reply
    • Johnny

      January 16, 2020 at 4:12 pm

      Great questions that warrant a guide for it! In general, a general VPS is all you need. The CPU or MEMORY optimized version are only specific use cases where the server is processing to max capacity at all times. For web servers, we usually cache things as much as possible to reduce dynamic processing load so you won’t notice the difference as much. Of course, speed affects websites.

      Reply
  4. Kami

    April 4, 2020 at 7:17 am

    Nice and useful.
    with woocommerce so CPU or RAM?
    thanks

    Reply
    • Johnny

      April 4, 2020 at 12:12 pm

      WooCommerce would benefit from RAM if you do lots of object caching, and CPU if you have many checkouts. So a bit of both. Small stores lean towards CPU.

      Reply
  5. David

    February 7, 2022 at 12:02 pm

    Great article.
    I was doing some research what hardware would be sufficient for a web server. Now I have a good overview.

    Thanks!

    Reply

Leave a Reply to Silva Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2022 | WordPress guides by Johnny Nguyen

Click to Copy