On Apr 21, 7:57 pm, cropr <ruben.dec...@gmail.com> wrote: > I am running 3 pylons apps on a single VPS with 256 MB ram (no swap > space). I am using apache in multi threaded mode and mod_wsgi. > Every 2 to 3 months I restart the apache server, because the apache > child processes gradually grow in memory size, reaching slowly the 256 > MB limit on busy days.
You are presumably using daemon mode of mod_wsgi else this wouldn't even likely be possible. Anyway, read 'http://blog.dscpl.com.au/2009/11/save-on-memory-with- modwsgi-30.html'. It explains how to counter the leaks in Python which occur on an Apache restart. Graham > Ruben > > On 20 apr, 00:28, Alex <a...@oxygencomputers.co.uk> wrote: > > > > > > > Hi all, > > > Does anyone have any advice on hosting multiple Pylons apps in a low > > memory environment like a VPS. I've written a few apps using Pylons > > and it's great, so I'd like to use it for more. However the stuff I've > > used it for so far has justified running the apps on servers of their > > own, so I've been running them using paste behind lighty. However this > > seems to need quite a bit of RAM. I'd like to be able to host quite a > > few low traffic volume apps on the same VPS, but it seems that running > > several paste instances wouldn't be possible in the same way it's > > possible to host lots of low traffic PHP apps behind Apache and > > mod_php. > > > Anyone have any advice on deployment? > > > TIA. > > Alex > > > -- > > You received this message because you are subscribed to the Google Groups > > "pylons-discuss" group. > > To post to this group, send email to pylons-disc...@googlegroups.com. > > To unsubscribe from this group, send email to > > pylons-discuss+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/pylons-discuss?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-disc...@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.