im us this script for check the memory usage of my aplications ... checkit...
http://gist.github.com/252585 On Thu, Feb 11, 2010 at 8:34 AM, raven <ravenspo...@yahoo.com> wrote: > This sounds interesting. > > Instead of hacking around in import_all.py, I wonder if someone who > know what's what, could provide a stripped down version of this file - > or even an option to run with a stripped down version that only loads > the bare minimum? > > On Feb 11, 8:49 am, Timothy Farrell <tfarr...@swgen.com> wrote: >> You might try commenting out the lines in import_all.py if you're >> running the source version. That way it doesn't load every module. >> >> -tim >> >> On 2/10/2010 9:06 PM, raven wrote: >> >> > Here are the details of memory usage when web2py is NOT running >> >> > top - 21:58:38 up 11:57, 2 users, load average: 0.00, 0.00, 0.00 >> > Tasks: 10 total, 1 running, 9 sleeping, 0 stopped, 0 zombie >> > Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, >> > 0.0%si, 0.0%st >> > Mem: 65536k total, 13320k used, 52216k free, 0k >> > buffers >> > Swap: 0k total, 0k used, 0k free, 0k >> > cached >> >> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND >> > 1 root 15 0 1936 888 628 S 0 1.4 0:00.44 init >> > 28126 syslog 15 0 1972 668 536 S 0 1.0 0:00.29 syslogd >> > 28141 root 15 0 5372 1096 700 S 0 1.7 0:00.07 sshd >> > 28151 root 15 0 2468 880 712 S 0 1.3 0:00.00 xinetd >> > 28194 root 15 0 2168 924 740 S 0 1.4 0:00.08 cron >> > 28246 root 15 0 8176 2808 2240 S 0 4.3 0:00.97 sshd >> > 28309 root 18 0 2952 1672 1316 S 0 2.6 0:00.02 bash >> > 32170 root 15 0 8172 2804 2240 S 0 4.3 0:01.62 sshd >> > 32194 root 15 0 2944 1616 1272 S 0 2.5 0:00.00 bash >> > 18279 root 15 0 2384 1104 908 R 0 1.7 0:00.17 top >> >> > Here web2py is running ( I have reduced the numthreads to 2 ) >> >> > r...@x:~# top >> > top - 21:54:56 up 11:53, 2 users, load average: 0.00, 0.00, 0.00 >> > Tasks: 11 total, 1 running, 10 sleeping, 0 stopped, 0 zombie >> > Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, >> > 0.0%si, 0.0%st >> > Mem: 65536k total, 65536k used, 0k free, 0k >> > buffers >> > Swap: 0k total, 0k used, 0k free, 0k >> > cached >> >> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND >> > 1 root 15 0 1936 888 628 S 0 1.4 0:00.44 init >> > 28126 syslog 15 0 1972 668 536 S 0 1.0 0:00.29 syslogd >> > 28141 root 15 0 5372 1096 700 S 0 1.7 0:00.07 sshd >> > 28151 root 15 0 2468 880 712 S 0 1.3 0:00.00 xinetd >> > 28194 root 15 0 2168 924 740 S 0 1.4 0:00.08 cron >> > 28246 root 15 0 8176 2808 2240 S 0 4.3 0:00.97 sshd >> > 28309 root 15 0 2952 1672 1316 S 0 2.6 0:00.02 bash >> > 32170 root 15 0 8172 2804 2240 S 0 4.3 0:01.62 sshd >> > 32194 root 15 0 2944 1616 1272 S 0 2.5 0:00.00 bash >> > 14172 root 18 0 63088 25m 4252 S 0 40.2 0:04.13 python2.5 >> > 18279 root 15 0 2384 1104 908 R 0 1.7 0:00.16 top >> >> > On Feb 10, 8:13 pm, mdipierro<mdipie...@cs.depaul.edu> wrote: >> >> >> Are you sure. Usually VPS includes the OS. >> >> >> On Feb 10, 2:23 pm, raven<ravenspo...@yahoo.com> wrote: >> >> >>> Thank you for your answer. >> >> >>> 1. The memory needed by the OS does not count, because I am using a >> >>> virtual private server. >> >> >>> 2. I am using web2py 'out of the box' with its own server, not >> >>> apache. >> >> >>> On Feb 10, 2:36 pm, Thadeus Burgess<thade...@thadeusb.com> wrote: >> >> >>>> For one, you have two requirements, an Ubuntu requirement, which far >> >>>> exceeds 64K. I'm not sure an OS can even run on 64K now days. >> >> >>>> I run web2py + ubuntu + apache_mod_wsgi on several servers, and each >> >>>> instance web2py is only using roughly 15MB. The system uses around >> >>>> 90MB (this is including ubuntu, postgresql, apache). I'm sure a 256MB >> >>>> system will be more than enough for a small site, of course your ram >> >>>> usage goes up with the more requests / db access you have. >> >> >>>> -Thadeus >> >> >>>> On Wed, Feb 10, 2010 at 9:40 AM, raven<ravenspo...@yahoo.com> wrote: >> >> >>>>> web2py is working very well for me on my MSWINDOWS desktop. >> >> >>>>> I am ready to deploy my first application on a virtual private server >> >>>>> running Ubuntu with 64K of guaranteed RAM >> >> >>>>> I loaded the web2py source and typed >> >> >>>>> python2.5 web2py.py >> >> >>>>> and immediatly ran out of memory. >> >> >>>>> How much memory do I need to purchase? >> >> >>>>> -- >> >>>>> You received this message because you are subscribed to the Google >> >>>>> Groups "web2py-users" group. >> >>>>> To post to this group, send email to web...@googlegroups.com. >> >>>>> To unsubscribe from this group, send email to >> >>>>> web2py+unsubscr...@googlegroups.com. >> >>>>> For more options, visit this group >> >>>>> athttp://groups.google.com/group/web2py?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.