If you look there are two php.ini files, one for cli and one for apache. Hosting companies limit the cli one in some cases to keep you from running resource hungry cron jobs...
-Alex -----Original Message----- From: Jonathan Franks <jonat...@ifranks.com> Sender: symfony-users@googlegroups.com Date: Wed, 23 Mar 2011 10:43:57 To: <symfony-users@googlegroups.com> Reply-To: symfony-users@googlegroups.com Subject: [symfony-users] Re: cli memory problem... Hi Gabriel. Thanks! Following ur advice, I used a script to test memory usage that I found here... http://magazine.joomla.org/issues/Issue-Dec-2010/item/295-Are-you-getting-your-fair-share-of-PHP-memory?tmpl=component&print=1 And you were right! Through the web, the script happily gets up to 128mb but from the cli it maxes out at 5mb. I've now emailed my host asking them to look at this. Do you or anyone else have any idea what settings other than memory_limit might be effecting the, erm... memory limit?! I read online that the apache directive RLimitMEM also limits memory but I'm not sure if the cli version of php works with apache or not? Any advice would be super helpful! Thanks! On 22 Mar 2011, at 15:46, Gabriel Petchesi wrote: > Just a wild guess, maybe there is something on the hosting provider side that > still limits process memory usage, so it may only look like it's not limited > for PHP script. > My suggestion is to test this assumption, create a simple PHP scripts that > consumes memory and see how much memory it can consume before it reaches the > limit. > Also you could check by using a C program that malloc()-s some memory. > > In in both cases if there is some limitation to 5 MB the hosting provider > will have to solve it. > > gabriel > -- 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 -- 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