How to Increase WordPress Memory Limits

This Article Applies to

Computer MemoryOut of the box, your WordPress site is typically configured to limit itself to only using 40MB of RAM on your server. This is in many ways ideal because you don’t want each site hit to consume an immense amount of resources, just the minimum it needs. Too much memory and your site is at risk becoming slow and bloated. Too little memory and your site risks a bad case of Early Onset Senior Moments.

How to Tell if Your Site Needs a Shot of more Memory

If your site is behaving slowly, or pages fail to load or you get random “white screens of death”, you may need more memory. Your site’s memory is consumed by three things: your site’s code, the data that your site use to run all those themes and plugins, and your member data for your logged-in members. It’s easy to make sweeping generalizations, but the truth is that the mix of things on each site is unique so we’ll cover some guidelines but there is no black and white rule.

Many Plugins

If you have many plugins, even if they’re small, light, fairy-like plugins that barely leave a footprint in the snow, they can add up quickly and run you low on memory.

Drag and Drop Themes

Most themes are fairly light on memory. If you’re using a drag-and-drop theme or marketing framework, just keep in mind that all that capability does come at a cost and you are definitely paying it. Examples include Thrive Themes, Divi, Visual Composer, OptimizePress, etc.

Complex Plugins

If you’re running more than one complex feature loaded plugin like Memberium, WooCommerce, etc. then you may also be skating on thin memory ice.

How to Rejuvenate Your Site Memory

The key to taking control of your memory back is the wp-config.php file located in the home directory of your WordPress site. This file cannot be edited IN WordPress, you’ll need to use your Cpanel, SFTP or FTP account to go in and edit it. This file is full of sensitive configuration information, which needs to be kept intact.

You will want to add the following line near the beginning of your wp-config.php file. If the line already exists, then edit the existing line.

define('WP_MEMORY_LIMIT', '64M');

If your WP_MEMORY_LIMIT line is already at 64M or higher, then increase it by 16M-32M each time, so 80M, 96M, etc. It’s important to include the “M” in the number. We don’t make these rules.

Many web hosts will let you go up to 256M. Don’t jump straight to 256M.

Pro Tip
If you need more than 256M, then there may be something else wrong and you should reach out to us at support.

We’ve seen customers allocate 1024M. That’s just a crazy large amount of memory and over-allocating memory like that can cause issues as well. Memory allocation is like wine, too little and people are grumpy, just the right amount and everyone’s happy, too much and you’re dancing on tables wearing only a lampshade.

If you’re not comfortable with editing the config file, then go to Support and submit a support ticket and we’ll take care of it for you. Our support team agents eat wp-config files for breakfast.

Pro Tip x2 
Be sure to include your CPanel/SFTP/FTP information. Be sure to test the logins before sending it and include all the information.The number one cause of delays in ticket handling is missing or wrong login information.
  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site

Table of Contents

This Article Applies to

Keep Reading

How to Protect Your Lead Magnet Content with Infusionsoft Web Forms

One of the problems that membership site owners frequently want to solve, is how to use the power of the membership software to protect lead magnets from being accessed. This requires a few steps, and may seem daunting at first, but it’s REALLY not hard to do at all if you follow the steps in this recipe. You’ll be doing it like a pro in no time at all!

Read More »

How to Create a Successful and Authentic Membership Site That’s Built for the Long Term With Tracy Childers [Episode 21]

In this episode Micah interview’s Tracy Childers, “the godfather” of membership sites. Throughout this episode Tracy shares how he co-founded WishList Member. He shares his advice on how to run a successful membership site for the long term and his advice on starting a reliable business partnership.

Tracy and Micah talk about how the subscription economy has evolved over the years. Where it’s headed in the future and what this means for people who are looking to start a membership site. They also discuss a few important topics that every business owner should start considering to make sure their business stays prepared for the future. To find out what they are exactly, you’ll want to check out the full episode…

Read More »

LearnDash Auto-Enroll Tags

In the Memberium / LearnDash system, Memberium controls VISIBILITY of the course; whether not a visitor on your site can see the course. Learndash controls whether or not you’re ENROLLED in the course and can take it.

Read More »

Want to get some fresh ideas on how you can improve your membership site or course?

Download our free ebook!

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://keap.memberium.com/support/ or Email us at support@memberium.com.