Well, whether it's memory leaks or not, I'm experiencing a memory exhaustion. The code would look like this:
$memorySize = memory_get_usage();// X bytes $this->model->save($this->data); $memorySize = memory_get_usage();// X + 2000 bytes $this->model->create(); $memorySize = memory_get_usage();// X + 2000 bytes I ran this test a few times by putting it in a function and looping it. The results are pretty consistent. Each Model::Save() increases memory by about 2000 bytes. Even after I call Model::Create(), the memory does not reduce. Is there a way to clear the memory? Does anybody also experience a somewhat similar issue? where by each Model::Save results in an increase of memory? On Apr 8, 12:56 pm, Alex Ciobanu <ics.cake...@gmail.com> wrote: > On 4/8/2011 7:47 AM, keymaster wrote:> I think Miles is pointing out there is > a bug in php interpreter which > > can lose memory under certain circumstances, and through our coding we > > can trigger that bug. > > > So, yes, it appears possible that memory can leak, and that by > > changing our code, we can stop it. > > > Pretty scary, isn't it. > > Yeah, this can get nasty :-) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php