Need to solve the "Stateless HTTP" problem

Ian Kelly ian.g.kelly at gmail.com
Thu May 5 13:07:42 EDT 2011


On Thu, May 5, 2011 at 8:22 AM, Gnarlodious <gnarlodious at gmail.com> wrote:
> My scripting has grown to the point where the Apache server is a
> problem. My Python websites run and quit, which means I need to save
> data and recreate everything next page load. Bulky and slow. What is
> the simplest solution?
>
> I am running Py3 on OSX Server with Apache 2. Essentially I want
> certain objects to be a "constantly running process" that may timeout
> after some disuse. I suspect there are already systems for it. Please
> advise in simple terms, I am not a professional.

It sounds to me like you're currently running your Python scripts as
CGIs?  You should look into running your scripts via mod_wsgi in
daemon mode, which will do exactly what you are asking.  See here:

http://code.google.com/p/modwsgi/



More information about the Python-list mailing list