Skip to content

Doctrine uses too much RAM #42402

Answered by dbrumann
koredalin asked this question in Q&A
Aug 6, 2021 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

The doctrine project has their own discussions: https://github.com/doctrine/orm/discussions. You might have better luck there.

That being said, you might want to look at clearing the ObjectManager regularly. It's hard to tell without seeing any code, but I find that often times old entity manager state can not be collected by the garbage collector, which can cause the memory issues that you describe.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@dbrumann
Comment options

@koredalin
Comment options

@ruudk
Comment options

@koredalin
Comment options

Answer selected by OskarStark
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants