Memory size error
  • Hello,

    I've recently migrated a newscoop 3.5.3 from an old server to a new provider.
    The new server is a CentOS 6.4 64 bit, Dual Core, 4GB RAM, with about 4k visitors daily.

    Today I was looking at the logs and found this:

    [Mon Sep 02 06:27:20 2013] [error] [client 204.11.108.94] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /var/www/sites/mywebsite.com/classes/DatabaseObject.php on line 276

    [Mon Sep 02 06:28:01 2013] [error] [client 199.30.16.17] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 80 bytes) in /var/www/sites/mywebsite.com/include/adodb/adodb.inc.php on line 1052

    [Mon Sep 02 06:28:01 2013] [error] [client 199.30.16.17] File does not exist: /var/www/cgi-bin/get_img
    [Mon Sep 02 06:28:33 2013] [error] [client 157.55.33.182] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /var/www/sites/mywebsite.com/classes/DatabaseObject.php on line 372

    Checked out the memory_size in php.ini and got this:

    memory_limit = 256M
    max_input_time = 60
    max_execution_time = 60

    Any clue about why PHP needs more memory even if it is at 256MB?

    Thanks