[RSS Feed/News] Improve error reporting when OOM occurs

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Currently XenForo essentially hard falls over when an OOM error occurs, and fails to log OOM errors.

There are strategies to work-around (discussed here);
  • Pre-reserve a chunk of memory at startup
  • In the shutdown handler;
    • Try call ini_set('memory_limit') with a higher limit.
    • Release the reserve and/or clear various caches before any operation which could allocate. (including other function calls!)
This doesn't work in all cases, but it would work in a...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom