I am running Symfony3 with Doctrine and Sonata Admin. I don't think I need to get into details about the project. The problem is that while I am editing one of my big entities I get an:
HTTP ERROR 500
When I cut down some properties of the Entity, I get an:
OutOfMemoryException in FileProfilerStorage.php line 158: Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5371354 bytes)
Tried:
1. Out of memory error in symfony failed
2. Changing php.ini memory_limit from 128M to 4048M (Step by step, I know it is too much), everything failed
3. php -d memory_limit=1024M app/console cache:clear --env=prod
, various values, failed
4. also php bin/console cache:clear
failed
Then, what's next?