Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak loading upload_contents #121

Open
cmcfadden opened this issue Mar 30, 2023 · 0 comments
Open

Memory leak loading upload_contents #121

cmcfadden opened this issue Mar 30, 2023 · 0 comments

Comments

@cmcfadden
Copy link
Member

There's an issue where assets with loads of files attached (>500) will eventually hit the php memory limit. This is because getFileHandler() within upload_contents eats ~300k per call, mostly in the doctrine entity.

Right now, we touch that in a lot of places, getSearchData, getAsText, etc.

Ideas? Maybe cache those values on the upload_contents object the first time we touch it, then discard that entity. I think we could mostly do that within the upload_contents entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant