Re: Fatal error: Allowed memory size of XXXXX bytes exhausted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10-10-15 04:42 PM, Julien Jabouin wrote:
Hello,

I have an issu with a script launched by cron.

In fact, although i setup php memory_limit to high value (1G or 2Go),
i have the same issue.

By example  with 2G :

Output from command /usr/bin/php5 -d memory_limit=2G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 266257 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


And with 1G :

Output from command /usr/bin/php5 -d memory_limit=1G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 267717 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


Result is the same...
Do you know why ?


This is my php version :
/usr/bin/php5 -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22
2009 01:50:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
     with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by
ionCube Ltd., and
     with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies


On a Debian Lenny, 64 bits version.

It would seem that your script is gobbling memory somewhere. Perhaps you've entered an infinite loop which is simply tacking additional elements onto an array constantly.

Without seeing the script itself, it's hard to say quite what the problem might be, but what's evident is that your script is eating memory.

Thanks,
Justin Martin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux