Laravel out of memory issue?

那年仲夏 提交于 2019-12-13 03:29:13

问题


I run an application on my Linux server, which gets data from big DB tables. For instance, for around 100000-200000 rows, the size is about 50M.

But when I get data from table, the memory of the server is far greater, and after a "select" query, memory stays high, and then when I get data again, memory increases even more.

Finally my application runs out of memory. It only takes 3 times to happen. The error status returned at that point is 500. The memory on server is 2GB, and I modified my php.ini file, to set memory_limit=1500M.

I am considering why memory does not get freed after getting data. I have also searched this issue, but still not solved. Hope anyone can help me out here. Thanks in advance.

来源:https://stackoverflow.com/questions/50236319/laravel-out-of-memory-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!