Title: Plugin doesn&#039;t use full memory size
Last modified: August 31, 2016

---

# Plugin doesn't use full memory size

 *  Resolved [josba](https://wordpress.org/support/users/josba/)
 * (@josba)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/)
 * Hi,
 * we have the following error:
    PHP Fatal error: Allowed memory size of 268435456
   bytes exhausted (tried to allocate 77 bytes) in /daten/www/seimo.biz/web/igv/
   wp-includes/wp-db.php on line 1565
 * Thats very strange because our php memory_limit is 512M.
 * What could be the problem?
    Thanks. Josef
 * [https://wordpress.org/plugins/ns-cloner-site-copier/](https://wordpress.org/plugins/ns-cloner-site-copier/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Never Settle](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294471)
 * WordPress also has a max memory setting that will prevent the full PHP limit 
   from being used.
 * [https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP](https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
 * Note the WP_MAX_MEMORY_LIMIT set in wp-config.php which is usually 256M. You 
   might need to check that value on your install.
 * Cheers.
 *  Thread Starter [josba](https://wordpress.org/support/users/josba/)
 * (@josba)
 * [10 years ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294797)
 * Hi,
    we’ve set that value before.
 * +++++
 * <?php
    @ini_set(“memory_limit”,’512M’); define(‘WP_MEMORY_LIMIT’, ‘512M’);
 * +++++
 * So unfortunately that doesn’t solve our problem.
    Do you have any idea?
 * Thanks in advance.
    Cheers.
 *  Plugin Author [Never Settle](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [10 years ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294804)
 * You might have to check with your host. Sometimes they have master settings that
   override any custom settings made. Those master settings can prevent custom values
   that are provided. Different hosts also only allow custom settings through specific
   methods. For example, they might not honor custom settings in php code, but might
   honor modifications to the php.ini file or .htaccess file. You might have to 
   experiment with different methods to get the setting to stick. You can use a 
   dummy php file with the phpinfo() function in it to check the actual settings
   that are taking effect. There are plugins that allow you to get the results of
   phpinfo() in the WP dashboard if you don’t want to do it in code yourself. And
   if you don’t see what you expect in the results of that, you’ll have to check
   with your host on how to get those limits set.
 * Cheers!
 *  [benklocek](https://wordpress.org/support/users/benklocek/)
 * (@benklocek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294875)
 * I had to set both in wp-config.php for it to work:
    define(‘WP_MEMORY_LIMIT’,‘
   1500M’); define(‘WP_MAX_MEMORY_LIMIT’, ‘1500M’);
 *  Plugin Author [Never Settle](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294876)
 * That’s correct. Setting only the PHP memory limit will not make sure WP will 
   use it all. You have to set both to ensure that WP can access everything that
   PHP will allow. Thanks for posting your fix!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin doesn't use full memory size’ is closed to new replies.

 * ![](https://ps.w.org/ns-cloner-site-copier/assets/icon-256x256.gif?rev=2323308)
 * [NS Cloner - Site Copier](https://wordpress.org/plugins/ns-cloner-site-copier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ns-cloner-site-copier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ns-cloner-site-copier/)
 * [Active Topics](https://wordpress.org/support/plugin/ns-cloner-site-copier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ns-cloner-site-copier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ns-cloner-site-copier/reviews/)

## Tags

 * [memory size](https://wordpress.org/support/topic-tag/memory-size/)

 * 5 replies
 * 3 participants
 * Last reply from: [Never Settle](https://wordpress.org/support/users/neversettle/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-doesnt-use-full-memory-size/#post-7294876)
 * Status: resolved