"I only use lightttpd for static pages and to remap URLs." Plus a UNIX socket between lighttpd and web2py to service web2py requests through FastCGI.
John Heenan On Feb 12, 8:59 am, John Heenan <johnmhee...@gmail.com> wrote: > How about web2py in a VPS using less than 40MB RAM? > > You can reduce web2py memory usage by using a newer generation web > server with web2py instead of the internal web server with web2py. > > Apache gets trashed in tests by newer generation web servers such as > lightttpd and nginx. Apache also uses far more memory. > > The reason is simple. Apache services each request with a thread. > Nginx amd lightttpd service each request with an event model. > > I only use lightttpd for static pages and to remap URLs. > > This is my memory usage with lighthttpd and web2py from command 'ps > aux'. > > resident memory units are in KB > virtual memory units are 1024 byte units > > lighttpd: resident memory 3660, virtual memory 59568 > python for web2py: resident memory 32816, virtual memory 225824 > > This is the memory usage of a python console WITHOUT any imports: > resident memory 3580, virtual memory 24316 > > John Heenan > > On Feb 11, 10:30 pm, raven <ravenspo...@yahoo.com> wrote: > > > It seems that everyone is running with Apache and gobs of memory > > available. -- 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.