tedious/TedivmStashBundle

Profiler Symfony and OutOfMemoryException

mehdi-ghezal opened this issue · 0 comments

Hi,

In case of large data in cache, we got a OutOfMemoryException in the profiler :

OutOfMemoryException in FileProfilerStorage.php line 159:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33300466 bytes)

A simple workaround is to disable variables tracking

stash:
    tracking_values: false

I don't have time to propose a PR but if someone want to work on this, he can begin to have a look in Tedivm\StashBundle\Collector\CacheDataCollector and deduplicate data.

Mehdi