Round and round we go with more diversionary smokescreens. I have provided a quick 'bang you are there' approach for setting up an accepted and proven web server, Lightttpd, that tests show beats the pants off Apache.
Apache fans cry foul and won't accept test results. They blame users for poor configuration and make unsubstantiated claims about what changes would do. Most of us don't care, are not interested and mistrust anything that expects an expensive 'expert' is called in to achieve claimed dubious optimum efficiency. Can't we PLEASE just move on. Apache is history for both very busy sites and for very small resource sites. Apache did a great job and had glorious moments despite a fundamental design flaw unsuited to the way the web has evolved and having become bloated due to its chaotic style of development. Please let Apache die a peaceful death without attacking or casting a slur on those who have the nerve not to pay homage to Apache by using something else. It is simply not appropriate and sets up an unwelcome hostile environment for those of us who simply want to get on with using the best tools for the job and have this recognised, not slurred. mod_rewrite is not a burden. It allows lighttpd to serve static file for web2py instead of web2py serving them. This is a recognised benefit of using an external web server for web2py. John Heenan On Feb 21, 3:49 am, Thadeus Burgess <thade...@thadeusb.com> wrote: > As another added note.I can further reduce my memory footprint by > using wsgi 3.X. > > 3.X has new directives, one called LazyInitialization, which does not > initialize the python interpreter when apache starts, only when a > request to the wsgi process is made. > > Along with this is a directive that tells WSGI to only run your > applications in daemon mode, which further reduces the memory > footprint for apache. > > More tweaks can come from removing all of the LoadModule you are not > using, that come with apache by default. If you don't need > mod_rewrite, why load it? > > With these tweaks I could get another estimated 10MB shaved off the bottom > line. > > -Thadeus > > On Sat, Feb 20, 2010 at 3:24 AM, John Heenan <johnmhee...@gmail.com> wrote: > > Great! > > > I have modified the web2py slice > > athttp://www.web2pyslices.com/main/slices/take_slice/57 > > and added in a complete minimalist lighttpd configuration file for use > > with web2py based on tests I have just completed with a new VPS. I > > have also showed how to enable SSL (provided you have necessary > > certificate files) > > > I have also added in some notes on accessing web2py admin without > > starting up a new instance of Python. This works securely even without > > enabling SSL for lighttpd. > > > John Heenan > > > On Feb 20, 4:19 am, raven <ravenspo...@yahoo.com> wrote: > >> Now that I have web2py working with lighttpd, instead of its own web > >> server, > >> my application runs much, much faster and requires just over half as > >> much memory > >> ( 39M for web2py, python and lighttpd instead of 63M ) leaving me > >> plenty of room in my 64M system > > >> This is great! > > >> Without lighttpd > > >> 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 > > >> With lighttpd > > >> top - 13:10:21 up 1:06, 1 user, load average: 0.03, 0.01, 0.00 > >> Tasks: 11 total, 2 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, 40044k used, 25492k 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 18 0 1936 888 628 S 0 1.4 0:00.35 init > >> 16231 syslog 18 0 1976 676 536 S 0 1.0 0:00.01 syslogd > >> 16253 root 18 0 5368 1092 700 S 0 1.7 0:00.00 sshd > >> 16287 root 17 0 2472 880 712 S 0 1.3 0:00.00 xinetd > >> 16317 root 15 0 2164 924 740 S 0 1.4 0:00.00 cron > >> 25711 root 15 0 8332 2772 2220 R 0 4.2 0:00.14 sshd > >> 25763 root 15 0 2980 1684 1300 S 0 2.6 0:00.03 bash > >> 15513 root 17 0 2980 684 300 S 0 1.0 0:00.00 bash > >> 15515 www-data 18 0 33344 12m 3820 S 0 19.8 0:00.34 python > >> 26153 www-data 18 0 5248 2064 960 S 0 3.1 0:00.00 lighttpd > >> 5384 root 15 0 2384 1108 908 R 0 1.7 0:00.00 top > -- 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.