Title: memory issues
Last modified: May 20, 2017

---

# memory issues

 *  Resolved [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/)
 * After 6.3.8. update, the scans have began failing again (and I was so happy it
   was working before…)
    Fatal error: Allowed memory size of 419430400 bytes exhausted(
   tried to allocate 65655345 bytes) in /home/…/public_html/wp-content/plugins/wordfence/
   lib/wfConfig.php on line 493
 * Plus, the scan time is always exceeded. Initially, before the 6.3.9. update the
   memory issue didn’t even appear in the logs, now it does.
 * How can i fix this, without allocating even more memory?
 * Thanks

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

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9156439)
 * Hi [@infolegal](https://wordpress.org/support/users/infolegal/)
    Please go to(
   Wordfence > Tools => Diagnostics) and scroll down the page till “Send Report 
   by Email” and send the report to “alaa [at] wordfence [dot] com”, make sure to
   include your forum username, I will take a look at this report and let you know
   my findings.
 * Also, it would be helpful if you can share with me what you have selected in “
   [Scans to Include](https://docs.wordfence.com/en/Wordfence_options#Scans_to_Include)”
   option.
 * Thanks.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9156876)
 * Thanks a lot for your feedback. Report already sent via email. The Options set
   in scan will follow shortly.
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9167151)
 * Hi Sandra,
    Thanks for sending the diagnostics report, after checking the “WP_MEMORY_LIMIT”
   value there, I found it set to 40MB, please [increase the amount of memory allocated to PHP in WordPress](https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
   to 256MB and re-check this issue.
 * Let me know how it goes,
    Thanks.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9169519)
 * Hi,
 * thanks for your reply. Didn’t go well. I got the host to change the WP limit (
   couldn’t confirm it though on my own..) then I went back and started a scan. 
   It stopped with the same error:
 * Allowed memory size of 419430400 bytes exhausted (tried to allocate 66424769 
   bytes) in /home/***/public_html/wp-content/plugins/wordfence/lib/wfConfig.php
   on line 493
 * And then I tried to convert bytes to MB to see what’s wrong. And 419430400 is
   actually 400MB which is way beyond the 256M recommended memory. And scan was 
   also trying to allocate another 60MB (or so).
 * Any suggestions are welcomed.
 * Many thanks
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9169709)
 * Please set “[How much memory should Wordfence request when scanning](https://docs.wordfence.com/en/Wordfence_options#How_much_memory_should_Wordfence_request_when_scanning)”
   to `256` then retry running a new scan.
 * Thanks.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9169988)
 * I did that and the error was:
    [May 26 11:47:08] Fatal error: Allowed memory 
   size of 268435456 bytes exhausted (tried to allocate 42141171 bytes) in /home/***/
   public_html/wp-content/plugins/wordfence/lib/wfConfig.php on line 493
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9172247)
 * I have re-checked with the webhost and they set the memory limit to the correct
   value on the server. Even so, I still get the error on scan:
 * [May 27 06:38:36] Fatal error: Allowed memory size of 268435456 bytes exhausted(
   tried to allocate 43178820 bytes) in /home/***/public_html/wp-content/plugins/
   wordfence/lib/wfConfig.php on line 493
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/memory-issues-13/#post-9177031)
 * That’s a little bit strange, please try to disable other activated plugins -temporarily-
   and run a new scan, also, I would appreciate if you can resend the diagnostics
   report and the memory test result to the same email address again after adjusting
   the memory limit configuration.
 * Thanks.
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/memory-issues-13/#post-9183664)
 * Not very easy to do this. I’m experiencing the issue on a production site, not
   a test one. I will try and let you know. Thanks
 *  Thread Starter [M](https://wordpress.org/support/users/infolegal/)
 * (@infolegal)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/memory-issues-13/#post-9189788)
 * I’ve upgrade to latest version and noticed the low resources scan so I gave it
   a try. Still same error. I also noticed and fixed the litespeed setting. I keep
   seeing the wp_memory_limit set to 40MB in the diagnostic page. It would be helpful
   to tell me where you get that value from, so I can better explain it to the hosting
   service support. In the wp-config the value is set to 128, and in the scan error
   it shows it uses 256MB.
 * Thank you
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/memory-issues-13/#post-9201516)
 * It detects the “WP_MEMORY_LIMIT” constant value set in wp-config.php file, if
   you are sure you have set it to a different value by adding a similar line to
   that file :
    `define( 'WP_MEMORY_LIMIT', '128MB' );` but the diagnostics page
   still reports it as 40M, then you should contact your hosting provider regarding
   this issue, there are so many [different plugins](https://wordpress.org/plugins/search/server+info+memory/)
   that can check the same constant value, just in case you want to make sure about
   it.
 * Thanks.

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

The topic ‘memory issues’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

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

 * 11 replies
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/memory-issues-13/#post-9201516)
 * Status: resolved