Memory Leak - No libraries involved |
[eluser]Medikal[/eluser]
I seem to have found a memory leak in one of my pages on my website, it takes 20+ seconds to load each time, and it plays a large part of my websites purpose, so figuring it out is vital. Classic error message I get: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 22373429 bytes) in Directories..../libraries/Output.php on line 92 Now this controller to display the page uses the same function as many of the other pages, so I have no idea how to pinpoint it, any thoughts?
[eluser]vitoco[/eluser]
not the most elegant way to debug, but you can track the memory usage in any part of the code with this function : php - memory_get_usage Saludos
[eluser]Medikal[/eluser]
So um...not going to lie. It ended being one of those terrible infinite loop type deals. I am ashamed.
|
Welcome Guest, Not a member yet? Register Sign In |