Hi,

we had the same problem, which we were able to solve with writing a task
that runs other tasks in a forked process.

You can pass an array of tasks with arguments and options to this task, which
then runs them one by one in a seperate process.


best


-robert



On Sep 1, 2010, at 11:11 AM, PieR. 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to