Hi!
I posted this on the forum, but got no replies. Probably the list is
the place to get more feedback ;)
We have a decently big app, and we have our max_memory limit on 32 MB,
however this is an issue that happened when we had 128 MB too.
When I see the error log from apache, I see a lot of
[Thu Jul 23 09:56:15 2009] [error] [client XXX.XXX.XXX.XXX] PHP Fatal
error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 8711424 bytes) in /path/to/app/cache/frontend/prod/config/
config_core_compile. yml.php on line 3365
We're also seeing some weird issues that are fixed just by clearing
the cache, so my guess is that some cache files might get corrupted
when this fatal error happens.
I thought we might run the cache generator each say, 12 hours in a
cron with a higher memory_limit, but then I'd like to disable the
cache generation when the app runs - if the cache is generated, just
use it. Otherwise, just open the yml files as the _dev does. Do you
know how can I:
1) Generate the cache in a cron
2) Disable the cache generation on the app
This is the function that causes the memory failure.
public function shutdown()
{
if (!is_null($this->cache) && $this->cacheChanged)
{
$this->cacheChanged = false;
$this->cache->set('symfony.routing.data', serialize($this-
>cacheData));
}
}
The line 3365 is
$this->cache->set('symfony.routing.data', serialize($this-
>cacheData));
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---