If you’ve seen a notice in your WordPress admin which complains about a low Memory Limit then this page will help you understand more.
What is Memory Limit?
Memory Limit is a server setting which defines how much memory each individual thread (which builds a web page for a single user) can use before it gets killed. The intention here is for the server to stop memory-hogs slowing down the web service for other users.
Why does it matter?
Unfortunately this can interfere with a web-based CRM.
If you’re running a LARGE CSV import, for example, there’s a lot of processing that needs to be done by Jetpack CRM. There are several ways around this, and where we can we’ve broken processes into chunks.
Some areas retain this vulnerability though (CSV importer PRO), and will require further server setting changes to resolve (if you’re getting the warning). (Namely, increasing the max execution time and the memory limit).
How do I increase the memory limit?
There are several ways you can increase the value for this server setting. We recommend trying these in order.
1) Ask your host
Most hosting companies get asked this question all the time. Here’s what you need to copy & paste to them. If they say “no” or they tell you this isn’t possible, it’s likely they have a very low limit and may be a good reason to try a new host.
What to send to your host:
Hi, I’d like to increase the memory_limit server setting for my website *YOURWEBSITEHERE* – Please can you set it to 256M for this website.
2) Set the WP_MAX_MEMORY_LIMIT Constant
As detailed in the WordPress documentation, you can set a constant in your config.php
file, increasing the memory limit for WordPress. Try adding:
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
Adjust the value beyond 256M (256mb) to suit your needs.
3) HTACCESS File
To achieve this you’ll need to add or edit the .htaccess file at the root of your WordPress install, or domain and add the following line:
php_value memory_limit 256M