Allowed Memory Size Exhausted
Posted 19 March 2014 - 05:07 AM
1. base/CModule.php on line 103
100: public function __get($name)
103: return $this->getComponent($name);
105: return parent::__get($name);
2. web/auth/CWebUser.php on line 567
565: public function getState($key,$defaultValue=null)
568: return isset($_SESSION[$key]) ? $_SESSION[$key] : $defaultValue;
I set the memory limit to 512M & 1GB, but its not resolving the issue.
Posted 20 March 2014 - 06:14 AM
We have lot of AR models in our application but we are reading only few. For more information we are getting the error few times at staging server only (ubuntu) and even at the login page where we are reading only 3 AR models. At our local environment (windows with 512MB memory limit) its working fine without any memory issue.
We have set the import path at our application config file for all AR models that I believe is for autoloading only.
Posted 20 March 2014 - 01:45 PM
Attaching the wincachegrind screenshot, its showing that the CModule->getComponent is getting called 91 times.
Number of downloads: 3
Posted 24 March 2014 - 09:34 AM
We tracked the fatal error and found that the out of memory issue is occurring during the initialization of yii - 'user' component. I am using allowAutoLogin for user component configuration.