mod-python

Reducing Django Memory Usage. Low hanging fruit?

会有一股神秘感。 提交于 2019-11-29 18:32:24
My memory usage increases over time and restarting Django is not kind to users. I am unsure how to go about profiling the memory usage but some tips on how to start measuring would be useful. I have a feeling that there are some simple steps that could produce big gains. Ensuring 'debug' is set to 'False' is an obvious biggie. Can anyone suggest others? How much improvement would caching on low-traffic sites? In this case I'm running under Apache 2.x with mod_python. I've heard mod_wsgi is a bit leaner but it would be tricky to switch at this stage unless I know the gains would be significant.

Setting up Python on Windows/ Apache?

北战南征 提交于 2019-11-29 01:44:44
问题 I want to get a simple Python "hello world" web page script to run on Windows Vista/ Apache but hit different walls. I'm using WAMP. I've installed mod_python and the module shows, but I'm not quite sure what I'm supposed to do in e.g. http.conf (things like AddHandler mod_python .py either bring me to a file not found, or a forbidden, or module not found errors when accessing http://localhost/myfolder/index.py). I can get mod_python.publisher to work but do I "want" this/ need this? Can

Reducing Django Memory Usage. Low hanging fruit?

坚强是说给别人听的谎言 提交于 2019-11-28 13:10:31
问题 My memory usage increases over time and restarting Django is not kind to users. I am unsure how to go about profiling the memory usage but some tips on how to start measuring would be useful. I have a feeling that there are some simple steps that could produce big gains. Ensuring 'debug' is set to 'False' is an obvious biggie. Can anyone suggest others? How much improvement would caching on low-traffic sites? In this case I'm running under Apache 2.x with mod_python. I've heard mod_wsgi is a

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

。_饼干妹妹 提交于 2019-11-27 05:59:35
I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use? pyfunc A part answer to your question, including scgi. What's the difference between scgi and wsgi? Is there a speed difference between WSGI and FCGI? How Python web frameworks, WSGI and CGI fit together CGI vs FCGI Lazy and not writing it on my own. From the wikipedia: http://en.wikipedia.org/wiki/FastCGI Instead of creating a new process for each request, FastCGI uses persistent processes to handle such requests

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

守給你的承諾、 提交于 2019-11-26 11:48:38
问题 I\'m just wondering what the differences and advantages are for the different CGI\'s out there. Which one would be best for python scripts, and how would I tell the script what to use? 回答1: A part answer to your question, including scgi. What's the difference between scgi and wsgi? Is there a speed difference between WSGI and FCGI? How Python web frameworks, WSGI and CGI fit together CGI vs FCGI Lazy and not writing it on my own. From the wikipedia: http://en.wikipedia.org/wiki/FastCGI