---------- Forwarded message ----------
From: Andres Vargas - zodman <[email protected]>
Date: Wed, Dec 9, 2009 at 10:45 AM
Subject: Re: [Cherokee] cherokee + django on low memory vps
To: Alvaro Lopez Ortega <[email protected]>


python /var/www/zodyblog/manage.py runfcgi protocol=scgi
socket=/tmp/cherokee-source1.sock maxspare=1 minspare=1

with this the problem solved and low memory usage

only a note ... cherokee usage by top

zodman:/home/zodman# python ps_mem.py
 Private  +   Shared  =  RAM used       Program

 84.0 KiB + 312.0 KiB = 396.0 KiB       klogd
116.0 KiB + 332.0 KiB = 448.0 KiB       cherokee
136.0 KiB + 356.0 KiB = 492.0 KiB       portmap
136.0 KiB + 464.0 KiB = 600.0 KiB       syslogd
168.0 KiB + 548.0 KiB = 716.0 KiB       init
260.0 KiB + 612.0 KiB = 872.0 KiB       cron
260.0 KiB + 808.0 KiB =   1.0 MiB       su
908.0 KiB + 548.0 KiB =   1.4 MiB       cherokee-worker
 1.8 MiB + 740.0 KiB =   2.6 MiB       screen (2)
 3.1 MiB +   1.1 MiB =   4.2 MiB       irssi
 3.1 MiB +   1.9 MiB =   5.0 MiB       sshd (3)
 7.8 MiB +   1.2 MiB =   9.1 MiB       bash (5)
 11.5 MiB +   5.0 MiB =  16.5 MiB       python2.5 (2)


cherokee usage 1.4Mb+ 448Kb = 1.8mb aprox
and python process usage = 16mb....

http://gist.github.com/252585






On Wed, Dec 9, 2009 at 3:52 AM, Alvaro Lopez Ortega <[email protected]> wrote:
> On 09/12/2009, at 02:11, Andres Vargas - zodman wrote:
>
>> Soooo im trying to find why exit( exist a way for cherokee catch the
>> output generated by runfcgi) and no seen the way for found why has an
>> exit.
>
> The stderr of the FastCGI is logged in your virtual server errors log as long 
> as it writes to a file or the standard error stream.
>
>> PID 25793: launched '/bin/sh -c exec python /var/www/zodyblog/manage.py 
>> runfcgi protocol=scgi socket=/tmp/cherokee-source1.sock maxchildren=1 
>> debug=true  outlog=/var/log/cherooke/out.log 
>> errlog=/var/log/cherokee/err.log   daemonize=false maxrequests=1  maxspare=1 
>> minspare=1' with uid=0, gid=0, env=inherited
>> PID 25793: exited re=1
>
> Looks like the problem is that maxrequests=1 parameter that you added.
>
> --
> Octality
> http://www.octality.com/
>
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to