News:

Wondering if this will always be free?  See why free is better.

Main Menu

Out of memory errors in ob_sessrewrite

Started by MrManager, February 01, 2015, 06:26:15 PM

Previous topic - Next topic

MrManager

I occasionally see these PHP errors in my log files:
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 66030621 bytes) in /xxx/Sources/QueryString.php on line 481

They get triggered by this line in the ob_sessrewrite function in Sources/QueryString.php:
$buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);

Any ideas what this is and how I could prevent it from happening?

margarett

SMF won't use 128Mb... Which version are you running? (2.0.7 had in fact some issues with excessive memory consumption)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

MrManager


margarett

So in this case I see no possibility of it being an issue with SMF itself...

So, MODs in use?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: