My suspicion is that the limitation is not related to PHP or Apche in any 
way, it's probably some setting on a system level that affects all running 
processes.
That is why I said that you should try also with a compiled C program this 
test to verify that the limitation affects all processes.

Best regards,

   gabriel



On Wednesday, March 23, 2011 12:43:57 PM UTC+2, Jonathan Franks wrote:
>
> 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 [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