Allowed memory size exhausted

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Allowed memory size exhausted

metalmini
Hi guys,

I am having the hardest time with Zend framwork at the moment.

All was well and my project was almost finished but while i was browsing through the application i got a mem size exhausted error on two pages.

Both of these pages have default zend forms on them. I cant remember what changes where made so i cant step back and trace the error.

So now i installed xdebug to get me going again but the trace file is 290 mb so i cant post it in here.

How do i find the error that is causing this problem? Can anybody help me out on this?

I have a little snippet from the apache error logging:

[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}() /home/somedomain/www/index.php:0, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2. Zend_Application->run() /home/somedomain/www/index.php:46, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3. Zend_Application_Bootstrap_Bootstrap->run() /home/somedomain/www/library/Zend/Application.php:358, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4. Zend_Controller_Front->dispatch($request = *uninitialized*, $response = *uninitialized*) /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5. Zend_Controller_Dispatcher_Standard->dispatch($request = class Zend_Controller_Request_Http { protected $_paramSources = array (0 => '_GET', 1 => '_POST'); protected $_requestUri = 'users/voices-register'; protected $_baseUrl = ''; protected $_basePath = NULL; protected $_pathInfo = 'users/voices-register'; protected $_params = array ('module' => 'users', 'controller' => 'voices-register', 'action' => 'index', 'tpl' => 'modules/users/views/scripts/voicesRegister/index.phtml'); protected $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched = TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module'; protected $_controller = 'index'; protected $_controllerKey = 'controller'; protected $_action = 'show-other-page'; protected $_actionKey = 'action' }, $response = class Zend_Controller_Response_Http { protected $_body = array ('default' => ''); protected $_exceptions = array (); protected $_headers = array (); protected $_headersRaw = array (); protected $_httpResponseCode = 200; protected $_isRedirect = FALSE; protected $_renderExceptions = FALSE; public $headersSentThrowsException = TRUE }) /home/somedomain/www/library/Zend/Controller/Front.php:946, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6. Zend_Controller_Action->dispatch($action = 'showOtherPageAction') /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7. Pages_IndexController->showOtherPageAction() /home/somedomain/www/library/Zend/Controller/Action.php:513, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8. Pages->getPagePath($page_id = 6) /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9. Pages->getPage($id = '4') /home/somedomain/www/application/modules/pages/models/Pages.php:86, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10. Pages->__construct($parent_id = '4') /home/somedomain/www/application/modules/pages/models/Pages.php:41, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11. FP_Db_Table->__construct($language = *uninitialized*) /home/somedomain/www/application/modules/pages/models/Pages.php:18, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12. Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*) /home/somedomain/www/library/FP/Db/Table.php:18, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13. Zend_Db_Table_Select->__construct($table = class Pages { protected $_name = 'pages_en'; protected $_primary = array (1 => 'page_id'); protected $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id = NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName = 'position'; protected $_select = NULL; protected $_language = 'en'; protected $_hasLanguages = TRUE; public $_paginator = NULL; protected $_definition = NULL; protected $_definitionConfigName = NULL; protected $_db = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql'; protected $_numericDataTypes = array (...); protected $_defaultStmtClass = 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... }; protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected $_connection = class PDO { ... }; protected $_caseFolding = 0; protected $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE; protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema = NULL; protected $_cols = NULL; protected $_identity = 1; protected $_sequence = TRUE; protected $_metadata = array (); protected $_metadataCache = NULL; protected $_metadataCacheInClass = TRUE; protected $_rowsetClass = 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected $_dependentTables = array (); protected $_defaultSource = 'defaultNone'; protected $_defaultValues = array () }) /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14. Zend_Db_Table_Select->setTable($table = class Pages { protected $_name = 'pages_en'; protected $_primary = array (1 => 'page_id'); protected $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id = NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName = 'position'; protected $_select = NULL; protected $_language = 'en'; protected $_hasLanguages = TRUE; public $_paginator = NULL; protected $_definition = NULL; protected $_definitionConfigName = NULL; protected $_db = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql'; protected $_numericDataTypes = array (...); protected $_defaultStmtClass = 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... }; protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected $_connection = class PDO { ... }; protected $_caseFolding = 0; protected $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE; protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema = NULL; protected $_cols = NULL; protected $_identity = 1; protected $_sequence = TRUE; protected $_metadata = array (); protected $_metadataCache = NULL; protected $_metadataCacheInClass = TRUE; protected $_rowsetClass = 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected $_dependentTables = array (); protected $_defaultSource = 'defaultNone'; protected $_defaultValues = array () }) /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15. Zend_Db_Table_Abstract->info($key = *uninitialized*) /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16. Zend_Db_Table_Abstract->_setupPrimaryKey() /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17. Zend_Db_Table_Abstract->_getCols() /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18. Zend_Db_Table_Abstract->_setupMetadata() /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer: http://somedomain.nl/en/contact_info
[Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19. Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en', $schemaName = NULL) /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer: http://somedomain.nl/en/contact_info
Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

Marco Pivetta
290 megs of trace? That's way too much!
What about your ZF version? Can't see anything at
Zend/Db/Adapter/Pdo/Mysql.php on line 205.

Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 28 July 2011 16:29, metalmini <[hidden email]> wrote:

> Hi guys,
>
> I am having the hardest time with Zend framwork at the moment.
>
> All was well and my project was almost finished but while i was browsing
> through the application i got a mem size exhausted error on two pages.
>
> Both of these pages have default zend forms on them. I cant remember what
> changes where made so i cant step back and trace the error.
>
> So now i installed xdebug to get me going again but the trace file is 290
> mb
> so i cant post it in here.
>
> How do i find the error that is causing this problem? Can anybody help me
> out on this?
>
> I have a little snippet from the apache error logging:
>
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:
>  Allowed
> memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in
> /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}()
> /home/somedomain/www/index.php:0, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2.
> Zend_Application->run() /home/somedomain/www/index.php:46, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3.
> Zend_Application_Bootstrap_Bootstrap->run()
> /home/somedomain/www/library/Zend/Application.php:358, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4.
> Zend_Controller_Front->dispatch($request = *uninitialized*, $response =
> *uninitialized*)
> /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5.
> Zend_Controller_Dispatcher_Standard->dispatch($request = class
> Zend_Controller_Request_Http { protected $_paramSources = array (0 =>
> '_GET', 1 => '_POST'); protected $_requestUri = 'users/voices-register';
> protected $_baseUrl = ''; protected $_basePath = NULL; protected $_pathInfo
> = 'users/voices-register'; protected $_params = array ('module' => 'users',
> 'controller' => 'voices-register', 'action' => 'index', 'tpl' =>
> 'modules/users/views/scripts/voicesRegister/index.phtml'); protected
> $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched =
> TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module';
> protected $_controller = 'index'; protected $_controllerKey = 'controller';
> protected $_action = 'show-other-page'; protected $_actionKey = 'action' },
> $response = class Zend_Controller_Response_Http { protected $_body = array
> ('default' => ''); protected $_exceptions = array (); protected $_headers =
> array (); protected $_headersRaw = array (); protected $_httpResponseCode =
> 200; protected $_isRedirect = FALSE; protected $_renderExceptions = FALSE;
> public $headersSentThrowsException = TRUE })
> /home/somedomain/www/library/Zend/Controller/Front.php:946, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6.
> Zend_Controller_Action->dispatch($action = 'showOtherPageAction')
> /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7.
> Pages_IndexController->showOtherPageAction()
> /home/somedomain/www/library/Zend/Controller/Action.php:513, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8.
> Pages->getPagePath($page_id = 6)
>
> /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9.
> Pages->getPage($id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:86,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10.
> Pages->__construct($parent_id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:41,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11.
> FP_Db_Table->__construct($language = *uninitialized*)
> /home/somedomain/www/application/modules/pages/models/Pages.php:18,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12.
> Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*)
> /home/somedomain/www/library/FP/Db/Table.php:18, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13.
> Zend_Db_Table_Select->__construct($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected
> $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14.
> Zend_Db_Table_Select->setTable($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected
> $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15.
> Zend_Db_Table_Abstract->info($key = *uninitialized*)
> /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16.
> Zend_Db_Table_Abstract->_setupPrimaryKey()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17.
> Zend_Db_Table_Abstract->_getCols()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18.
> Zend_Db_Table_Abstract->_setupMetadata()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19.
> Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en',
> $schemaName = NULL)
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer:
> http://somedomain.nl/en/contact_info
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701480.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

metalmini
Hoe do i retrieve the version number of the framework :-$

i tried
  1. echo Zend_Version::getLatest();
But this seems to generate even more errors...

On Thu, Jul 28, 2011 at 5:18 PM, Marco Pivetta [via Zend Framework Community] <[hidden email]> wrote:
290 megs of trace? That's way too much!
What about your ZF version? Can't see anything at
Zend/Db/Adapter/Pdo/Mysql.php on line 205.

Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 28 July 2011 16:29, metalmini <[hidden email]> wrote:

> Hi guys,
>
> I am having the hardest time with Zend framwork at the moment.
>
> All was well and my project was almost finished but while i was browsing
> through the application i got a mem size exhausted error on two pages.
>
> Both of these pages have default zend forms on them. I cant remember what
> changes where made so i cant step back and trace the error.
>
> So now i installed xdebug to get me going again but the trace file is 290
> mb
> so i cant post it in here.
>
> How do i find the error that is causing this problem? Can anybody help me
> out on this?
>
> I have a little snippet from the apache error logging:
>
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:
>  Allowed
> memory size of <a href="tel:134217728" value="+31134217728" target="_blank">134217728 bytes exhausted (tried to allocate 82 bytes) in
> /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}()
> /home/somedomain/www/index.php:0, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2.
> Zend_Application->run() /home/somedomain/www/index.php:46, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3.
> Zend_Application_Bootstrap_Bootstrap->run()
> /home/somedomain/www/library/Zend/Application.php:358, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4.
> Zend_Controller_Front->dispatch($request = *uninitialized*, $response =
> *uninitialized*)
> /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5.
> Zend_Controller_Dispatcher_Standard->dispatch($request = class
> Zend_Controller_Request_Http { protected $_paramSources = array (0 =>
> '_GET', 1 => '_POST'); protected $_requestUri = 'users/voices-register';
> protected $_baseUrl = ''; protected $_basePath = NULL; protected $_pathInfo
> = 'users/voices-register'; protected $_params = array ('module' => 'users',
> 'controller' => 'voices-register', 'action' => 'index', 'tpl' =>
> 'modules/users/views/scripts/voicesRegister/index.phtml'); protected
> $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched =
> TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module';
> protected $_controller = 'index'; protected $_controllerKey = 'controller';
> protected $_action = 'show-other-page'; protected $_actionKey = 'action' },
> $response = class Zend_Controller_Response_Http { protected $_body = array
> ('default' => ''); protected $_exceptions = array (); protected $_headers =
> array (); protected $_headersRaw = array (); protected $_httpResponseCode =
> 200; protected $_isRedirect = FALSE; protected $_renderExceptions = FALSE;
> public $headersSentThrowsException = TRUE })
> /home/somedomain/www/library/Zend/Controller/Front.php:946, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6.
> Zend_Controller_Action->dispatch($action = 'showOtherPageAction')
> /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7.
> Pages_IndexController->showOtherPageAction()
> /home/somedomain/www/library/Zend/Controller/Action.php:513, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8.
> Pages->getPagePath($page_id = 6)
>
> /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9.
> Pages->getPage($id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:86,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10.
> Pages->__construct($parent_id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:41,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11.
> FP_Db_Table->__construct($language = *uninitialized*)
> /home/somedomain/www/application/modules/pages/models/Pages.php:18,
> referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12.
> Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*)
> /home/somedomain/www/library/FP/Db/Table.php:18, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13.
> Zend_Db_Table_Select->__construct($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected
> $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14.
> Zend_Db_Table_Select->setTable($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected
> $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15.
> Zend_Db_Table_Abstract->info($key = *uninitialized*)
> /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16.
> Zend_Db_Table_Abstract->_setupPrimaryKey()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17.
> Zend_Db_Table_Abstract->_getCols()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18.
> Zend_Db_Table_Abstract->_setupMetadata()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19.
> Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en',
> $schemaName = NULL)
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer:
> http://somedomain.nl/en/contact_info
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701480.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Unsubscribe: [hidden email]
>
>
>



If you reply to this email, your message will be added to the discussion below:
http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701594.html
To unsubscribe from Allowed memory size exhausted, click here.



--
Afstudeerproject: #LiveArtz
http://www.LiveArtz.nl

http://portfolio.schouman.info
My digital portfolio/CV

-------------------------------------------------------
Deze email is verstuurd door Michael
Disclaimer: http://blog.schouman.info/index.php/e-mail-disclaimer/

Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

till-2
In reply to this post by metalmini
On Thu, Jul 28, 2011 at 4:29 PM, metalmini <[hidden email]> wrote:

> Hi guys,
>
> I am having the hardest time with Zend framwork at the moment.
>
> All was well and my project was almost finished but while i was browsing
> through the application i got a mem size exhausted error on two pages.
>
> Both of these pages have default zend forms on them. I cant remember what
> changes where made so i cant step back and trace the error.
>
> So now i installed xdebug to get me going again but the trace file is 290 mb
> so i cant post it in here.

By trace, do you mean the cachegrind file?

What happens when you inspect it yourself?

Also, are you sure it's not DB related? E.g. somewhere else you're
already reading all records from a giant table into php? Most likely
somewhere before the error below.

The error below seems to be related to Zend_Db_Table setting up the
meta data. Depending on how many models (based on
Zend_Db_Table_Abstract) you have, that's a lot of legwork -- on each
request.

Check out the relevant bits in the manual (setDefaultMetaDataCache):
http://framework.zend.com/manual/en/zend.db.table.html

I'd probably try to analyze memory usage throughout your code. It's
hard to determine like that. But the cachegrind file should allow you
to do so

This will probably come in useful:
http://derickrethans.nl/xdebug-and-tracing-memory-usage.html

Till

>
> How do i find the error that is causing this problem? Can anybody help me
> out on this?
>
> I have a little snippet from the apache error logging:
>
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:  Allowed
> memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in
> /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}()
> /home/somedomain/www/index.php:0, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2.
> Zend_Application->run() /home/somedomain/www/index.php:46, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3.
> Zend_Application_Bootstrap_Bootstrap->run()
> /home/somedomain/www/library/Zend/Application.php:358, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4.
> Zend_Controller_Front->dispatch($request = *uninitialized*, $response =
> *uninitialized*)
> /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5.
> Zend_Controller_Dispatcher_Standard->dispatch($request = class
> Zend_Controller_Request_Http { protected $_paramSources = array (0 =>
> '_GET', 1 => '_POST'); protected $_requestUri = 'users/voices-register';
> protected $_baseUrl = ''; protected $_basePath = NULL; protected $_pathInfo
> = 'users/voices-register'; protected $_params = array ('module' => 'users',
> 'controller' => 'voices-register', 'action' => 'index', 'tpl' =>
> 'modules/users/views/scripts/voicesRegister/index.phtml'); protected
> $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched =
> TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module';
> protected $_controller = 'index'; protected $_controllerKey = 'controller';
> protected $_action = 'show-other-page'; protected $_actionKey = 'action' },
> $response = class Zend_Controller_Response_Http { protected $_body = array
> ('default' => ''); protected $_exceptions = array (); protected $_headers =
> array (); protected $_headersRaw = array (); protected $_httpResponseCode =
> 200; protected $_isRedirect = FALSE; protected $_renderExceptions = FALSE;
> public $headersSentThrowsException = TRUE })
> /home/somedomain/www/library/Zend/Controller/Front.php:946, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6.
> Zend_Controller_Action->dispatch($action = 'showOtherPageAction')
> /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7.
> Pages_IndexController->showOtherPageAction()
> /home/somedomain/www/library/Zend/Controller/Action.php:513, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8.
> Pages->getPagePath($page_id = 6)
> /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319,
> referer: http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9.
> Pages->getPage($id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:86, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10.
> Pages->__construct($parent_id = '4')
> /home/somedomain/www/application/modules/pages/models/Pages.php:41, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11.
> FP_Db_Table->__construct($language = *uninitialized*)
> /home/somedomain/www/application/modules/pages/models/Pages.php:18, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12.
> Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*)
> /home/somedomain/www/library/FP/Db/Table.php:18, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13.
> Zend_Db_Table_Select->__construct($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql'; protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema = NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14.
> Zend_Db_Table_Select->setTable($table = class Pages { protected $_name =
> 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> 'position'; protected $_select = NULL; protected $_language = 'en';
> protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> $_definition = NULL; protected $_definitionConfigName = NULL; protected $_db
> = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql'; protected
> $_numericDataTypes = array (...); protected $_defaultStmtClass =
> 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema = NULL;
> protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> protected $_defaultValues = array () })
> /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15.
> Zend_Db_Table_Abstract->info($key = *uninitialized*)
> /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16.
> Zend_Db_Table_Abstract->_setupPrimaryKey()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17.
> Zend_Db_Table_Abstract->_getCols()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18.
> Zend_Db_Table_Abstract->_setupMetadata()
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer:
> http://somedomain.nl/en/contact_info
> [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19.
> Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en',
> $schemaName = NULL)
> /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer:
> http://somedomain.nl/en/contact_info
>
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701480.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

Jigal Sanders
In reply to this post by metalmini
command line you can do: zf --show-version

On Thu, Jul 28, 2011 at 7:26 PM, metalmini <[hidden email]> wrote:

> Hoe do i retrieve the version number of the framework :-$
>
> i tried
>
>   1. echo <http://www.php.net/echo>
> Zend_Version<http://www.php.net/zend_version>
>   ::getLatest();
>
> But this seems to generate even more errors...
>
> On Thu, Jul 28, 2011 at 5:18 PM, Marco Pivetta [via Zend Framework
> Community] <[hidden email]> wrote:
>
> > 290 megs of trace? That's way too much!
> > What about your ZF version? Can't see anything at
> > Zend/Db/Adapter/Pdo/Mysql.php on line 205.
> >
> > Marco Pivetta
> > http://twitter.com/Ocramius
> > http://marco-pivetta.com
> >
> >
> >
> > On 28 July 2011 16:29, metalmini <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=3701594&i=0>>
> > wrote:
> >
> > > Hi guys,
> > >
> > > I am having the hardest time with Zend framwork at the moment.
> > >
> > > All was well and my project was almost finished but while i was
> browsing
> > > through the application i got a mem size exhausted error on two pages.
> > >
> > > Both of these pages have default zend forms on them. I cant remember
> what
> >
> > > changes where made so i cant step back and trace the error.
> > >
> > > So now i installed xdebug to get me going again but the trace file is
> 290
> >
> > > mb
> > > so i cant post it in here.
> > >
> > > How do i find the error that is causing this problem? Can anybody help
> me
> >
> > > out on this?
> > >
> > > I have a little snippet from the apache error logging:
> > >
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:
> > >  Allowed
> > > memory size of 134217728 bytes exhausted (tried to allocate 82 bytes)
> in
> >
> > > /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205,
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:,
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}()
> > > /home/somedomain/www/index.php:0, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2.
> > > Zend_Application->run() /home/somedomain/www/index.php:46, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3.
> > > Zend_Application_Bootstrap_Bootstrap->run()
> > > /home/somedomain/www/library/Zend/Application.php:358, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4.
> > > Zend_Controller_Front->dispatch($request = *uninitialized*, $response =
> > > *uninitialized*)
> > >
> /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5.
> > > Zend_Controller_Dispatcher_Standard->dispatch($request = class
> > > Zend_Controller_Request_Http { protected $_paramSources = array (0 =>
> > > '_GET', 1 => '_POST'); protected $_requestUri =
> 'users/voices-register';
> > > protected $_baseUrl = ''; protected $_basePath = NULL; protected
> > $_pathInfo
> > > = 'users/voices-register'; protected $_params = array ('module' =>
> > 'users',
> > > 'controller' => 'voices-register', 'action' => 'index', 'tpl' =>
> > > 'modules/users/views/scripts/voicesRegister/index.phtml'); protected
> > > $_rawBody = NULL; protected $_aliases = array (); protected
> $_dispatched
> > =
> > > TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module';
> > > protected $_controller = 'index'; protected $_controllerKey =
> > 'controller';
> > > protected $_action = 'show-other-page'; protected $_actionKey =
> 'action'
> > },
> > > $response = class Zend_Controller_Response_Http { protected $_body =
> > array
> > > ('default' => ''); protected $_exceptions = array (); protected
> $_headers
> > =
> > > array (); protected $_headersRaw = array (); protected
> $_httpResponseCode
> > =
> > > 200; protected $_isRedirect = FALSE; protected $_renderExceptions =
> > FALSE;
> > > public $headersSentThrowsException = TRUE })
> > > /home/somedomain/www/library/Zend/Controller/Front.php:946, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6.
> > > Zend_Controller_Action->dispatch($action = 'showOtherPageAction')
> > >
> /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7.
> > > Pages_IndexController->showOtherPageAction()
> > > /home/somedomain/www/library/Zend/Controller/Action.php:513, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8.
> > > Pages->getPagePath($page_id = 6)
> > >
> > >
> >
> /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9.
> > > Pages->getPage($id = '4')
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:86,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10.
> > > Pages->__construct($parent_id = '4')
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:41,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11.
> > > FP_Db_Table->__construct($language = *uninitialized*)
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:18,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12.
> > > Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*)
> > > /home/somedomain/www/library/FP/Db/Table.php:18, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13.
> > > Zend_Db_Table_Select->__construct($table = class Pages { protected
> $_name
> > =
> > > 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> > > $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> > > NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> > > 'position'; protected $_select = NULL; protected $_language = 'en';
> > > protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> > > $_definition = NULL; protected $_definitionConfigName = NULL; protected
> > > $_db
> > > = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> > > protected
> > > $_numericDataTypes = array (...); protected $_defaultStmtClass =
> > > 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> > > $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> > > protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> > > $_connection = class PDO { ... }; protected $_caseFolding = 0;
> protected
> > > $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> > > protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> > > NULL;
> > > protected $_cols = NULL; protected $_identity = 1; protected $_sequence
> =
> >
> > > TRUE; protected $_metadata = array (); protected $_metadataCache =
> NULL;
> > > protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> > > 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> > > $_dependentTables = array (); protected $_defaultSource =
> 'defaultNone';
> > > protected $_defaultValues = array () })
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14.
> > > Zend_Db_Table_Select->setTable($table = class Pages { protected $_name
> =
> > > 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> > > $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> > > NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> > > 'position'; protected $_select = NULL; protected $_language = 'en';
> > > protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> > > $_definition = NULL; protected $_definitionConfigName = NULL; protected
> > > $_db
> > > = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> > > protected
> > > $_numericDataTypes = array (...); protected $_defaultStmtClass =
> > > 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> > > $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> > > protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> > > $_connection = class PDO { ... }; protected $_caseFolding = 0;
> protected
> > > $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> > > protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> > > NULL;
> > > protected $_cols = NULL; protected $_identity = 1; protected $_sequence
> =
> >
> > > TRUE; protected $_metadata = array (); protected $_metadataCache =
> NULL;
> > > protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> > > 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> > > $_dependentTables = array (); protected $_defaultSource =
> 'defaultNone';
> > > protected $_defaultValues = array () })
> > > /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15.
> > > Zend_Db_Table_Abstract->info($key = *uninitialized*)
> > > /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16.
> > > Zend_Db_Table_Abstract->_setupPrimaryKey()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17.
> > > Zend_Db_Table_Abstract->_getCols()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18.
> > > Zend_Db_Table_Abstract->_setupMetadata()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19.
> > > Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en',
> > > $schemaName = NULL)
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer:
> > > http://somedomain.nl/en/contact_info
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701480.html
> > > Sent from the Zend Framework mailing list archive at Nabble.com.
> > >
> > > --
> > > List: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3701594&i=1>
> > > Info: http://framework.zend.com/archives
> > > Unsubscribe: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=3701594&i=2>
> > >
> > >
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701594.html
> >  To unsubscribe from Allowed memory size exhausted, click here<
> >.
> >
> >
>
>
>
> --
> Afstudeerproject: #LiveArtz
>
http://www.LiveArtz.nl
>
> http://portfolio.schouman.info
> My digital portfolio/CV
>
> <http://blog.schouman.info>
> -------------------------------------------------------
> Deze email is verstuurd door Michael
> Disclaimer: http://blog.schouman.info/index.php/e-mail-disclaimer/
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701886.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>



--
Met vriendelijke groet,

Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

localheinz

> command line you can do: zf --show-version

Or see /Zend/Version.php.

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

Bart McLeod
Regarding the original memory error, the causes can be anywhere in your
application. The error occurs on the last bit of memory php tries to
allocate that is to big for the remaining memory resources. This can
even happen at different spots in the code, depending on how the memory
is allocated during execution.

Are you using code with memory leaks? Like an old mssql server extension
or PHPExcel component?

You may also try to increase the memory limit in php.ini. You seem to
have around 12M if I read it right, but you could set it to 512M for
example and see if you code will run on that.

Just my 2 cents.

-Bart

Op 28-07-11 21:01, Andreas Möller schreef:
>> command line you can do: zf --show-version
> Or see /Zend/Version.php.
>

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

weierophinney
Administrator
In reply to this post by metalmini
-- metalmini <[hidden email]> wrote
(on Thursday, 28 July 2011, 10:26 AM -0700):
> Hoe do i retrieve the version number of the framework :-$


require_once 'Zend/Version.php';
echo Zend_Version::VERSION;


> i tried
>
>    1. echo <http://www.php.net/echo>
> Zend_Version<http://www.php.net/zend_version>
>    ::getLatest();
>
> But this seems to generate even more errors...
>
> On Thu, Jul 28, 2011 at 5:18 PM, Marco Pivetta [via Zend Framework
> Community] <[hidden email]> wrote:
>
> > 290 megs of trace? That's way too much!
> > What about your ZF version? Can't see anything at
> > Zend/Db/Adapter/Pdo/Mysql.php on line 205.
> >
> > Marco Pivetta
> > http://twitter.com/Ocramius
> > http://marco-pivetta.com
> >
> >
> >
> > On 28 July 2011 16:29, metalmini <[hidden email]<http://user/SendEmail.jtp?type=node&node=3701594&i=0>>
> > wrote:
> >
> > > Hi guys,
> > >
> > > I am having the hardest time with Zend framwork at the moment.
> > >
> > > All was well and my project was almost finished but while i was browsing
> > > through the application i got a mem size exhausted error on two pages.
> > >
> > > Both of these pages have default zend forms on them. I cant remember what
> >
> > > changes where made so i cant step back and trace the error.
> > >
> > > So now i installed xdebug to get me going again but the trace file is 290
> >
> > > mb
> > > so i cant post it in here.
> > >
> > > How do i find the error that is causing this problem? Can anybody help me
> >
> > > out on this?
> > >
> > > I have a little snippet from the apache error logging:
> > >
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Fatal error:
> > >  Allowed
> > > memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in
> >
> > > /home/somedomain/www/library/Zend/Db/Adapter/Pdo/Mysql.php on line 205,
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP Stack trace:,
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   1. {main}()
> > > /home/somedomain/www/index.php:0, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   2.
> > > Zend_Application->run() /home/somedomain/www/index.php:46, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   3.
> > > Zend_Application_Bootstrap_Bootstrap->run()
> > > /home/somedomain/www/library/Zend/Application.php:358, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   4.
> > > Zend_Controller_Front->dispatch($request = *uninitialized*, $response =
> > > *uninitialized*)
> > > /home/somedomain/www/library/Zend/Application/Bootstrap/Bootstrap.php:77,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   5.
> > > Zend_Controller_Dispatcher_Standard->dispatch($request = class
> > > Zend_Controller_Request_Http { protected $_paramSources = array (0 =>
> > > '_GET', 1 => '_POST'); protected $_requestUri = 'users/voices-register';
> > > protected $_baseUrl = ''; protected $_basePath = NULL; protected
> > $_pathInfo
> > > = 'users/voices-register'; protected $_params = array ('module' =>
> > 'users',
> > > 'controller' => 'voices-register', 'action' => 'index', 'tpl' =>
> > > 'modules/users/views/scripts/voicesRegister/index.phtml'); protected
> > > $_rawBody = NULL; protected $_aliases = array (); protected $_dispatched
> > =
> > > TRUE; protected $_module = 'pages'; protected $_moduleKey = 'module';
> > > protected $_controller = 'index'; protected $_controllerKey =
> > 'controller';
> > > protected $_action = 'show-other-page'; protected $_actionKey = 'action'
> > },
> > > $response = class Zend_Controller_Response_Http { protected $_body =
> > array
> > > ('default' => ''); protected $_exceptions = array (); protected $_headers
> > =
> > > array (); protected $_headersRaw = array (); protected $_httpResponseCode
> > =
> > > 200; protected $_isRedirect = FALSE; protected $_renderExceptions =
> > FALSE;
> > > public $headersSentThrowsException = TRUE })
> > > /home/somedomain/www/library/Zend/Controller/Front.php:946, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   6.
> > > Zend_Controller_Action->dispatch($action = 'showOtherPageAction')
> > > /home/somedomain/www/library/Zend/Controller/Dispatcher/Standard.php:289,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   7.
> > > Pages_IndexController->showOtherPageAction()
> > > /home/somedomain/www/library/Zend/Controller/Action.php:513, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   8.
> > > Pages->getPagePath($page_id = 6)
> > >
> > >
> > /home/somedomain/www/application/modules/pages/controllers/IndexController.php:319,
> >
> > > referer: http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP   9.
> > > Pages->getPage($id = '4')
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:86,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  10.
> > > Pages->__construct($parent_id = '4')
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:41,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  11.
> > > FP_Db_Table->__construct($language = *uninitialized*)
> > > /home/somedomain/www/application/modules/pages/models/Pages.php:18,
> > > referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  12.
> > > Zend_Db_Table_Abstract->select($withFromPart = *uninitialized*)
> > > /home/somedomain/www/library/FP/Db/Table.php:18, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  13.
> > > Zend_Db_Table_Select->__construct($table = class Pages { protected $_name
> > =
> > > 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> > > $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> > > NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> > > 'position'; protected $_select = NULL; protected $_language = 'en';
> > > protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> > > $_definition = NULL; protected $_definitionConfigName = NULL; protected
> > > $_db
> > > = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> > > protected
> > > $_numericDataTypes = array (...); protected $_defaultStmtClass =
> > > 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> > > $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> > > protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> > > $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> > > $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> > > protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> > > NULL;
> > > protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> >
> > > TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> > > protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> > > 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> > > $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> > > protected $_defaultValues = array () })
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:1009, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  14.
> > > Zend_Db_Table_Select->setTable($table = class Pages { protected $_name =
> > > 'pages_en'; protected $_primary = array (1 => 'page_id'); protected
> > > $_rowClass = 'Page'; protected $_blocks = NULL; protected $_parent_id =
> > > NULL; public $_tree = NULL; private ${FP_Db_Table}:positionFieldName =
> > > 'position'; protected $_select = NULL; protected $_language = 'en';
> > > protected $_hasLanguages = TRUE; public $_paginator = NULL; protected
> > > $_definition = NULL; protected $_definitionConfigName = NULL; protected
> > > $_db
> > > = class Zend_Db_Adapter_Pdo_Mysql { protected $_pdoType = 'mysql';
> > > protected
> > > $_numericDataTypes = array (...); protected $_defaultStmtClass =
> > > 'Zend_Db_Statement_Pdo'; protected $_config = array (...); protected
> > > $_fetchMode = 5; protected $_profiler = class Zend_Db_Profiler { ... };
> > > protected $_defaultProfilerClass = 'Zend_Db_Profiler'; protected
> > > $_connection = class PDO { ... }; protected $_caseFolding = 0; protected
> > > $_autoQuoteIdentifiers = TRUE; protected $_allowSerialization = TRUE;
> > > protected $_autoReconnectOnUnserialize = FALSE }; protected $_schema =
> > > NULL;
> > > protected $_cols = NULL; protected $_identity = 1; protected $_sequence =
> >
> > > TRUE; protected $_metadata = array (); protected $_metadataCache = NULL;
> > > protected $_metadataCacheInClass = TRUE; protected $_rowsetClass =
> > > 'Zend_Db_Table_Rowset'; protected $_referenceMap = array (); protected
> > > $_dependentTables = array (); protected $_defaultSource = 'defaultNone';
> > > protected $_defaultValues = array () })
> > > /home/somedomain/www/library/Zend/Db/Table/Select.php:78, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  15.
> > > Zend_Db_Table_Abstract->info($key = *uninitialized*)
> > > /home/somedomain/www/library/Zend/Db/Table/Select.php:100, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  16.
> > > Zend_Db_Table_Abstract->_setupPrimaryKey()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:973, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  17.
> > > Zend_Db_Table_Abstract->_getCols()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:889, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  18.
> > > Zend_Db_Table_Abstract->_setupMetadata()
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:849, referer:
> > > http://somedomain.nl/en/contact_info
> > > [Thu Jul 28 16:13:16 2011] [error] [client someip] PHP  19.
> > > Zend_Db_Adapter_Pdo_Mysql->describeTable($tableName = 'pages_en',
> > > $schemaName = NULL)
> > > /home/somedomain/www/library/Zend/Db/Table/Abstract.php:823, referer:
> > > http://somedomain.nl/en/contact_info
> > >
> > >
> > > --
> > > View this message in context:
> > >
> > http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701480.html
> > > Sent from the Zend Framework mailing list archive at Nabble.com.
> > >
> > > --
> > > List: [hidden email]<http://user/SendEmail.jtp?type=node&node=3701594&i=1>
> > > Info: http://framework.zend.com/archives
> > > Unsubscribe: [hidden email]<http://user/SendEmail.jtp?type=node&node=3701594&i=2>
> > >
> > >
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> > http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701594.html
> >  To unsubscribe from Allowed memory size exhausted, click here<
> >
> >
>
>
>
> --
> Afstudeerproject: #LiveArtz
>
http://www.LiveArtz.nl
>
> http://portfolio.schouman.info
> My digital portfolio/CV
>
> <http://blog.schouman.info>
> -------------------------------------------------------
> Deze email is verstuurd door Michael
> Disclaimer: http://blog.schouman.info/index.php/e-mail-disclaimer/
>
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3701886.html
> Sent from the Zend Framework mailing list archive at Nabble.com.

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

till-2
In reply to this post by metalmini
On Thu, Jul 28, 2011 at 7:26 PM, metalmini <[hidden email]> wrote:
> Hoe do i retrieve the version number of the framework :-$

Look into the source code of Zend/Version.php! :-)

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

metalmini
Wow that are alot of replys :-)

Anyway i am using version: 1.9.5

And before everybody starts screaming about that, this project was handed to me and i knew (know even) nothing about zend framework.

I meant a trace file but i also got an cachegrind file which is about 170mb big...

I did an edit of php.ini to 512 mb but this still generates the problem.

I am not using an mssql database but i do use the excel generator. But this is used on different parts of the application. I dont think that it has anything to do with it.

I tried to use the "helper script for analyzing the output of a PHP xdebug code trace" But it outputs nothing :-(

[root@web01 tmp]# php trace.php trace.2043925204.xt memory-own 20
PHP Warning:  Module 'xdebug' already loaded in Unknown on line 0

parsing...
 ( 2.26%)
 ( 5.12%)
 ( 7.54%)
 ( 9.95%)
 (12.37%)
 (14.78%)
 (17.20%)
 (19.62%)
 (22.03%)
 (24.45%)
 (26.86%)
 (29.28%)
 (31.70%)
 (34.11%)
 (36.53%)
 (38.94%)
 (41.36%)
 (43.78%)
 (46.19%)
 (48.61%)
 (51.03%)
 (53.44%)
 (55.86%)
 (58.27%)
 (60.69%)

Done.

Showing the 20 most costly calls sorted by 'memory-own'.

  Inclusive Own
function#calls time memory time memory
------------------------------------------------
[root@web01 tmp]#

So what steps do i need to take? I think that i have written something that fills the global variable ($this) with alot of stuff, but well how do i hunt it down?

Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

Bart McLeod


Op 29-07-11 09:38, metalmini schreef:

> Wow that are alot of replys :-)
>
> Anyway i am using version: 1.9.5
>
> And before everybody starts screaming about that, this project was handed to
> me and i knew (know even) nothing about zend framework.
>
> I meant a trace file but i also got an cachegrind file which is about 170mb
> big...
>
> I did an edit of php.ini to 512 mb but this still generates the problem.
>
> I am not using an mssql database but i do use the excel generator. But this
> is used on different parts of the application. I dont think that it has
> anything to do with it.
I cannot be sure of course, but what if you just turned off the excel
generator? I told you about PHPExcel, because I experienced a problem
like you are having with exactly that component. It is also possible to
watch your system performance using your systems monitoring feature, to
see the memory consumption increase while the script runs. Maybe that
can shed some light on what it happening. PHPExcel remains my best guess.

>
> I tried to use the " https://gist.github.com/628803 helper script for
> analyzing the output of a PHP xdebug code trace " But it outputs nothing :-(
>
> [root@web01 tmp]# php trace.php trace.2043925204.xt memory-own 20
> PHP Warning:  Module 'xdebug' already loaded in Unknown on line 0
>
> parsing...
>   ( 2.26%)
>   ( 5.12%)
>   ( 7.54%)
>   ( 9.95%)
>   (12.37%)
>   (14.78%)
>   (17.20%)
>   (19.62%)
>   (22.03%)
>   (24.45%)
>   (26.86%)
>   (29.28%)
>   (31.70%)
>   (34.11%)
>   (36.53%)
>   (38.94%)
>   (41.36%)
>   (43.78%)
>   (46.19%)
>   (48.61%)
>   (51.03%)
>   (53.44%)
>   (55.86%)
>   (58.27%)
>   (60.69%)
>
> Done.
>
> Showing the 20 most costly calls sorted by 'memory-own'.
>
>    Inclusive Own
> function#calls time memory time memory
> ------------------------------------------------
> [root@web01 tmp]#
>
> So what steps do i need to take? I think that i have written something that
> fills the global variable ($this) with alot of stuff, but well how do i hunt
> it down?
>
>
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/Allowed-memory-size-exhausted-tp3701480p3703294.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Allowed memory size exhausted

localheinz
Also, you could check out Zend Studio, Zend Debugger and the Zend Debugger Toolbar for Firefox to profile your application.
--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]