Hello! I have a really strange problem and I dont know how to solve it. My application reaches memory limit from time to time and Internal server error 500 happens. I have limit of 570MB on shared hosting. I tried to debug my application and YiiDebug Toolbar shows that every page is consuming about 10-12MB of memory. I dont really get where is the problem. On my local wamp server, there are no problems.
Can anyone help me? At least tell me where to start looking for memory leaks because I dont see any obvious.
Here is capture of memory resource usage in cPanel:
I have read somewhere that the problem might be in lot of AR records. I don’t really know how much is too much.
On frontpage I have CGridView with 3 pages (DataProvider is from AR). i have 4 more pages, all of them get data from AR. 3 of them have about 20-30 records and one have 50-60 records. Is that lot of AR records?
My site is not really crowded so I don’t think that lot of users is a problem. It is a small intranet for one association.
I googled a bit and found out there’re quite a lot of same error messages with some ideas what to do and where to dig. I think it’s a good idea to investigate these cases first and to try to catch more information on the error, giving attention to what the error says: