1. Home
  2. Jetpack CRM
  3. Misc
  4. Server Memory Limit (For long-running pages)

Server Memory Limit (For long-running pages)

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.

If you want to see if one of these has worked, simply go to “Jetpack CRM > System Assistant > System Status” and there you can see the value “Memory Limit”.

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.

Note: 256M here means 256mb of server memory. Depending on the quality of your web hosting, this might be too large. The danger here is setting it high and leaving it high does mean that lots of users running long-running pages will slow your website down. We recommend you ask for this to be reset after doing a big import, unless you frequently need this feature.

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

See also..

Updated on August 16, 2022
Was this article helpful?

Related Articles

Still not found an answer?
If you've searched the knowledge base and still can't find a solution, please submit a ticket.
CONTACT SUPPORT