I am encoutering the following error with Symfony when trying to
php app/console cache:clear
or
php app/console cache:warmup
Fatal error: Allowed memory size of xxx bytes exhausted.
I already set memory limit to very large size 1024M, 2048M. I removed all twig templates from my project I unactivated vendors bundles leaving only FOSUSer and FOSRestBundle.
I am unable to track from where this error comes from.
Any idea?
Thanks
I get the following error

-vvvoption:php app/console cache:clear -vvv. It will give you more information. Your problem located in some of your twig templates (yes, it is still here because you can see this error). I think that one of your templates have recursion problem. Try to find survived templates in the whole project folder. It can be located not only inResources/viewsof your bundle folder but inapp/Resources/viewsor in any other folder if you have non-standart directory structure.