To resolve memory use issue in CodeIgniter |
[eluser]npCoda[/eluser]
I am facing problem of site break down. Since this is the site related to photos. It’s using almost 95% of memory of server. When it reaches to 100% the site is down. I checked from the profiler, and get following details: Quote:Loading Time: Base Classes 0.0404 For detail please see the attached file. Here data are fetched from Progress server using JSON. I am surprise what made it so. But in my mind one thing hunt, why not to free the memory when work is done? I went to different forum of CI but could not get the answer. I tried to use ob_end_flush(), ob_flush(),.. but could not get desire result. I am too is unaware about how to use in CI. I hope I am able to clear my problem. Thank you in advance for the support. I am using HMVC. CODE Code: // controller
[eluser]npCoda[/eluser]
No, images are in different server folder. Only the image name and path are stored in Progress Database.
[eluser]Aken[/eluser]
I'd suggest using the Benchmark library to profile your code and figure out where the most resources are being consumed. Then you can focus on trying to optimize that portion.
[eluser]npCoda[/eluser]
As I am new to CI so I am unaware about Benchmark library. Can you please provide me guideline (may be link) so that I can easily configure.
[eluser]InsiteFX[/eluser]
If you are using arrays make sure you unset them after you are finished with them.
[eluser]Aken[/eluser]
[quote author="npCoda" date="1338358255"]As I am new to CI so I am unaware about Benchmark library. Can you please provide me guideline (may be link) so that I can easily configure. [/quote] Always search the User Guide if you don't recognize something. http://ellislab.com/codeigniter/user-gui...hmark.html
|
Welcome Guest, Not a member yet? Register Sign In |