Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes)
symfony-2.2, twig
Solution
I had such problem in the past. Looks like for big projects this CLI script try to make too much work. As I discover it possible set amount of memory available in this case:
sudo php -d memory_limit=256M app/console cache:clear
Problem
Few days ago I started a new Symfony2 application and I get some troubles with cache: ``` $ rm -rf ./app/cache/* $ rm -rf ./app/logs/* $ ./app/console cache:clear Clearing the cache for the dev environment with debug true Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /Users/simonegentili/Development/Www/shop_website/vendor/twig/twig/lib/Twig/Node/Text.php on line 23 ``` And ... ``` $ ./app/console cache:clear --env=prod ``` works fine.