Memory-Leak? #11830
-
Bug Report
SummaryAfter importing a huge amount of data into the database we call for any entry within a entity a function that updates some fields. So the function is very simple (developed as symfony console command) but it looks like doctrine is loosing some memory. Because at around 10'000 iterations we got an Out-Of-Memory-Error from php. Current behaviorLooks like Memory was lost, because we got an out-of-memory-error: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/app/vendor/doctrine/persistence/src/Persistence/Reflection/RuntimeReflectionProperty.php on line 46 Expected behaviorMemory should not be lost. How to reproducethis is the function:
the updateSimpleSearch in that case looks like:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
First, I'd like to point out that you don't seem to be doing a lot of interesting stuff with |
Beta Was this translation helpful? Give feedback.
-
Looks llike the problem only exists in dev-environment. |
Beta Was this translation helpful? Give feedback.
Looks llike the problem only exists in dev-environment.
After switching to prod-environment all runs perfectly without any OOM.
Sorry