Hi,
Have you had a look at "psutil"? It is a python module to manage processes.

Best

2015-04-21 9:20 GMT+02:00 SHINTO PETER <shinto....@gmail.com>:
> Hi
> François Schiettecatte , limit memory and CPU usage for python socket client
> service
>
> On Mon, Apr 20, 2015 at 11:24 PM, François Schiettecatte
> <fschietteca...@gmail.com> wrote:
>>
>> Bummer, shows how long it has been since I have used that.
>>
>> Peter, why do you want to limit memory and CPU usage? To prevent someone
>> from killing the machine ?
>>
>> F.
>>
>> > On Apr 20, 2015, at 1:47 PM, Tim Chase <django.us...@tim.thechases.com>
>> > wrote:
>> >
>> > On 2015-04-20 13:13, François Schiettecatte wrote:
>> >> You don’t say what platform you are running on, but on linux/unix
>> >> you can use ulimit, see http://ss64.com/bash/ulimit.html
>> >
>> > I've wanted this occasionally, but "ulimit -m" doesn't appear to work
>> > on most modern Linux installations.  See
>> >
>> >
>> > http://unix.stackexchange.com/questions/129587/does-ulimit-m-not-work-on-modern-linux
>> >
>> > for more info.
>> >
>> > I'm not sure *why* it was removed, as there have been times I wanted
>> > this functionality (I'm looking at you, Firefox, and your
>> > memory-gorging habits) so it would be awfully helpful to have
>> > around.  I also just tested "ulimit -m" on OpenBSD and it too seems
>> > to let the RSS of the process grow beyond the specified limit.  I've
>> > got a FreeBSD laptop around here that I could test as well if I can
>> > find the power adaptor.
>> >
>> > -tkc
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to django-users+unsubscr...@googlegroups.com.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/django-users.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msgid/django-users/20150420124711.0f49d04d%40bigbox.christie.dr.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/LE6J4sRujbQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/E8425E9D-C9B9-4474-B6BC-3B719C599D23%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> SHINTO PETER
> NIRAPPIL
> 09591040010
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKggVnC%3DJGo%2BKxfE21%3DGAJY%2BTS%3DhTCJ8Ba1ZAVupLAHFanA1Yw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKUKWznQC3K0E044R4a1G-%2B067X1a-j9twrT_TBpear%2BS47cOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to