mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
Memory exhausted with clear() #7119
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @duzenko on GitHub (Mar 15, 2023).
Bug Report
Summary
I wrote a new utility script that I run in CLI. It processes many records.
Current behavior
It works as expected locally and on staging, but on production it runs out of memory (standard 256MB).
I have spent much time trying to debug it but the only thing that helps seems to be commenting out the clear() call.
This version does not exhaust memory but takes much longer to complete.
I would appreciate any insight in what's going on here.
Attached is the log from two invocations: with

clear()and without.