• Resolved francoc30

    (@francoc30)


    Hi,
    From time to time, I got php fatal error logged in my server error log (see below). I am not sure what is the consequence of the error. The memory on the server is 512MB, so why Wordfence cannot allocate enough memory. Please advise on how to prevent this, or is it something WF need to fix?

    20221104T005615: mysite.com/wp-admin/admin-ajax.php 
     
    mmap() failed: [12] Cannot allocate memory 
     
    mmap() failed: [12] Cannot allocate memory 
    PHP Fatal error:  Out of memory (allocated 177598464) (tried to allocate 7841152 bytes) in /server_path/public_html/test/wp-content/plugins/wordfence/lib/wfConfig.php on line 710
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @francoc30

    There are two types of memory error that we see, with the second one being much rarer (where xxxxx is a numerical value):

    Fatal error: Allowed memory size of xxxxx bytes exhausted (tried to allocate xxxxx bytes)

    Fatal error: Out of memory (allocated xxxxx) (tried to allocate xxxxx bytes)

    The first error above occurs when WordPress, the theme and all plugins on a site consume more memory from the web server than is allowed by the PHP directive memory_limit.

    However, your error specifically mentioned out of memory which matches the second error above. This is very likely to be memory exhaustion occurring outside of PHP somewhere on the server and you will need to ask your hosting provider to fix this as they will need to analyse the server operating system log files and the web server log files.

    Thread Starter francoc30

    (@francoc30)

    Thanks, I will contact my hosting company on this.
    With respect to WF, what is the consequence when this happens with a WF script?

    Plugin Support wfphil

    (@wfphil)

    Hi @francoc30

    If you get a fatal server memory error then the site will go down, whether it is for a WordPress, theme or plugin file.

    WordPress, your theme and all plugins are trying to consume server RAM memory to run PHP processes that the server can’t provide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php fatal error’ is closed to new replies.