On Oct 29, 4:33 pm, iain duncan <[EMAIL PROTECTED]> wrote:
> Seems there are a number of options out there, and that old docs are not
> so reliable in this department. I have a vps with not much ram, and
> sites that never see much traffic. ( Small local businesses ). Wondering
> what folks have found to be the best alternative to
> apache-mod_proxy-cherrpy to save ram.

For some general advice on reducing memory usage when using Apache see
my initial comments in:

  
http://groups.google.com/group/pylons-discuss/browse_frm/thread/0b289e7ccb006448#

The problem in your case is more to do with your TurboGears
application taking a lot of memory. One can always reduce the foot
print of the web server in various ways, with TG running in separate
daemon using mod_wsgi, fastcgi or using its own server, but bringing
down TG memory use is where it will matter.

You previously posted:

 1805  0.0  5.5 151748 14380 /usr/sbin/mysqld
10259  0.0 14.5 203848 37876 /usr/bin/python ./start-tgcms.py
16351  0.0 14.5 204952 38080 /usr/bin/python ./start-tgcms.py
29588  0.0  6.1  80144 16004 /usr/sbin/apache2 -k start -DSSL
30540  0.0 12.2 196688 31920 /usr/bin/python ./start-momcafe.py
30725  0.0  4.5  80276 11920 /usr/sbin/apache2 -k start -DSSL
30726  0.0  4.5  80276 11912 /usr/sbin/apache2 -k start -DSSL
30727  0.0  4.5  80276 11912 /usr/sbin/apache2 -k start -DSSL
30728  0.0  4.3  80144 11356 /usr/sbin/apache2 -k start -DSSL
30729  0.0  4.3  80144 11344 /usr/sbin/apache2 -k start -DSSL
30743  0.0  4.3  80144 11344 /usr/sbin/apache2 -k start -DSSL

My question is, what are the the three Python processes? Are they all
distinct TG applications, or are you running two copies of one in the
belief it is better to load balance between two copies of the one
application?

BTW, I wouldn't consider 256Mb being overly small, you just need to
ensure Apache is configured right and host TG in appropriate way and
you should have more than enough space left other. That you are using
prefork Apache rather than worker doesn't help. The memory size of
Apache also suggests you haven't gone through and trimmed out any
Apache modules you don't need.

In other words, you still have lots you could do with what you have,
but your will need to learn a few things to know what is best to do.

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to