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.