Sorry, I should have given a bit more detail.

Using ulimit is going to be an issue as it relies on the host allowing
users to modify their ulimit (some aren't allowed). It also then
applies that rule to any other processes within that user, which is
bad as different processes may need different limits.

I have seen other examples in the past of binaries being wrapped,
which then applied a memory limit, but I can't for the life of me
remember what it was called. :(

On Fri, Jul 8, 2011 at 2:33 PM, Tom Evans <tevans...@googlemail.com> wrote:
> On Fri, Jul 8, 2011 at 2:23 PM, Cal Leeming [Simplicity Media Ltd]
> <cal.leem...@simplicitymedialtd.co.uk> wrote:
>> Hi Roberto,
>>
>> Wonder if you might be able to give me some advice..
>>
>> Is there is a way to limit the address space of any other binary,
>> without relying on /etc/security/limits.conf??
>>
>> For example, is it possible to do something like this:
>>
>> ./magic-here --limit-as=256M -- /usr/sbin/some-legacy-binary-here
>>
>> ^^ that would then wrap the binary, enforcing a maximum address space of 
>> 256M.
>>
>> As you gave the option --limit-as to uwsgi, which can apply to any
>> python webapp, I was wondering if it's possible for us to do the same,
>> but without compiling the original binary into uwsgi.
>>
>> Let me know if the above doesn't make any sense lol.
>>
>> Cal
>>
>
> ulimit -a
>
> Eg: ulimit -s 4096
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to