Title: Memory Error for Database Backup
Last modified: August 21, 2016

---

# Memory Error for Database Backup

 *  [timjrye](https://wordpress.org/support/users/timjrye/)
 * (@timjrye)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/memory-error-for-database-backup/)
 * Hi,
 * I get the following error when I activate the plugin (version 4.0.10):
 * > Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
   > 13655637 bytes) in …/public_html/wp-content/plugins/better-wp-security/modules/
   > free/backup/class-itsec-backup.php on line 148
 * I get a white screen (other than the error message) and can’t view my site, log
   in or anything else until I deactivate the plugin (by renaming the directory).
 * Having looked at the source code I think it is because I have a large database,
   but surely the backup module should be able to cope with any size of database?
 * Please let me know how I can fix the problem ASAP!
 * Thanks.
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [Viktor Nagornyy](https://wordpress.org/support/users/viktorix/)
 * (@viktorix)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/memory-error-for-database-backup/#post-4771433)
 * You could try increasing memory allocated to your PHP inside your wp-config.php
   and try running it again. It might not be plugin issue.
 * [http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP](http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
 * `define( 'WP_MEMORY_LIMIT', '64M' );`
 * If you find out what your php.ini limit is set to you can increase WP limit to
   that and see if that helps. You can use a simple function to check your PHP settings.
 * Create info.php and put this in there.
 * `<?php phpinfo(); ?>`
 * And view it in your browser: domain.com/info.php and look for memory limit value.
 * Hope that helps, since developer support been lacking pretty bad last few days.
 *  Thread Starter [timjrye](https://wordpress.org/support/users/timjrye/)
 * (@timjrye)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/memory-error-for-database-backup/#post-4771456)
 * Running `phpinfo()` shows that the memory limit is already `128M`. I have increased
   it to `256M` and the plugin now works fine.
 * Is there any negative effect of setting the memory limit so high?
 *  [Viktor Nagornyy](https://wordpress.org/support/users/viktorix/)
 * (@viktorix)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/memory-error-for-database-backup/#post-4771485)
 * When on shared hosting, you’re sharing memory with all other websites. That’s
   why your phpinfo shows 128M, that’s set by your hosting company and some allow
   you to increase it using custom php.ini. WP memory limit allows WP to use that
   amount of memory, I believe that your memory will peak at 128 since that’s the
   php.ini limit, even if you set 256M for WP.
 * If you have a very active site with thousands of visitors, you might be using
   up a lot of memory and depending on your hosting company they might limit your
   resource usage if you’re using up too much resources like memory or CPU. How 
   they respond varies from company to company.

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

The topic ‘Memory Error for Database Backup’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Viktor Nagornyy](https://wordpress.org/support/users/viktorix/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/memory-error-for-database-backup/#post-4771485)
 * Status: not resolved