php - Out of memory error in symfony -
i'm working on symfony project (const version ='2.5.10') , using xampp. php version 5.5.19.
my problem everytime run dev environment error :
outofmemoryexception: error: allowed memory size of 1073741824 bytes exhausted (tried allocate 3358976 bytes) in c:\xampp\htdocs\editracker\vendor\symfony\symfony\src\symfony\component\httpkernel\profiler\fileprofilerstorage.php line 153
and everytime refresh page gives different memory size. think reason why dev environment takes lont time before refreshes page.
your appreciated.
php.ini
memory_limit= '256m'
i tried increase memory limit,still gives error memory limit
the eager component in symfony profiler. if don't need profiler in particular actions can disable via code:
if ($this->container->has('profiler')) { $this->container->get('profiler')->disable(); }
you can set global parameter in config:
framework: profiler: collect: false
Comments
Post a Comment