-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[5.4] Memory usage increased since v5.4.16 #18806
Comments
Ping @taylorotwell. |
I've just tested your snippet and indeed there is an increased usage in memory:
|
I've found the cause. @rimace is right - you can get a runaway memory usage with Eloquent. I'm submitting a PR now. This is a simpler test as well (click to show);
|
@rimace - Taylor has accepted the PR - so this should be fixed and this issue can be closed. If you have any more issues please advise. |
Thanks everyone :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Memory usage increased with commit 5d9b363 (included since v5.4.16).
I have commands which imports data from CSV files. These commands all use under 7 MB RAM with v5.4.15. Since Laravel 5.4.16 the memory usage has increased to about 300 MB RAM.
Steps To Reproduce:
I could not reduce the code and reproduce the increase to 300 MB, but this code still shows that the memory usage is multiple times higher with 5.4.16 than with older versions:
https://paste.laravel.io/9q1PA
The text was updated successfully, but these errors were encountered: