Memory Leak in my PHP App (built with Codeigniter Framework) [closed] Memory Leak in my PHP App (built with Codeigniter Framework) [closed] codeigniter codeigniter

Memory Leak in my PHP App (built with Codeigniter Framework) [closed]


Have you tried turning profiling on in your controller:

$this->output->enable_profiler(TRUE);

Would be interesting to see if anything crops up in the results of that which shows something is taking a little longer than usual.

Additionally you can always try CodeIgniter 2 which has now been released, the upgrade is backward compatible and has a lot of fixes.

--editYou could also try this:I found an variable “var $save_queries = TRUE;” on line 51 in file /system/database/DB_driver.php

Switching this to FALSE solved the issue for me.

From your controller you can use: $this->db->save_queries = FALSE; Where the leak should be an issue.--edit