ini_set('memory_limit', '128M'); BUT hang on. Do you really want to just throw more memory at the problem? Why not look at better ways to optimise your code to use less memory? For example, unset() variables and arrays as you finish using them. Use resultset methods (such as doSelectRS or doSelectStmt in Propel) instead of hydrated object methods (doSelect for example). There are many ways you can make your memory usage more efficient instead of just chucking more RAM at the problem. That should always be a last resort.
On Tue, Nov 30, 2010 at 7:20 PM, esukf <esuk...@gmail.com> wrote: > You can also try setting the memory_limit using -d option: > > php -d memory_limit=512 symfony > > On Nov 30, 4:39 pm, Macvek <mac...@gmail.com> wrote: > > Hi, > > > > I don't think so. It is global PHP property. > > You can try running this task locally, on your PC, and then upload the > > results to remote server. > > > > Building propel database can take some time, especially when there are > > many relations. > > > > Regards, > > Maciej Aleksandrowicz > > > > 2010/11/30 HAUSa <jeroen_heeft_behoefte_aan_r...@hotmail.com>: > > > > > Can I configure this in the .htaccess as well? > > > > > On 30 nov, 17:31, Macvek <mac...@gmail.com> wrote: > > >> Hi, > > > > >> You should edit 'memory_limit' in your php.ini. I've set it to 128M > > >> and every task works well. > > > > >> Regards, > > >> Maciej Aleksandrowicz > > > > >> 2010/11/30 HAUSa <jeroen_heeft_behoefte_aan_r...@hotmail.com>: > > > > >> > If I run a task created in my lib/task folder, I get this error: > > > > >> > PHP Fatal error: Allowed memory size of 134217728 bytes exhausted > > >> > (tried to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/ > > >> > sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on > line > > >> > 100 > > > > >> > Fatal error: Allowed memory size of 134217728 bytes exhausted (tried > > >> > to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/ > > >> > sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on > line > > >> > 100 > > > > >> > In that task, a great batch of XML data gets synchronized in the > > >> > database. > > >> > How can I prevent this from happening? > > > > >> > -- > > >> > 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<symfony-users%2bunsubscr...@googlegroups.com> > > >> > 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 symfony-users@googlegroups.com > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > > > 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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