Hi! My suggestion is to use PHP 5.3.X, it has improved garbage collection and it should help with reclaiming unused memory. Also you should group the code that is leaking inside a separate function(s), this way the PHP runtime knows that it can release the memory for variables within the scope.
gabriel On Sep 1, 12:11 pm, "PieR." <pbaz...@gmail.com> wrote: > Hi, > > I have a sfTask in CLI wich use lot of foreach and preg_matches, and > unfortunatly PHP return an error "Allowed memory size...." in few > minutes. > > I read that PHP clear the memory when a script ends, so I tried to run > tasks inside the main task, but the problem still remains. > > How to manage this memory issue ? clear memory or launch tasks in > separate processes ? > > The final aim is to build a web crawler, wich runs many hours per > days. > > Thanks in advance for help, > > Regards, > > Pierre -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en