Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:" ': 0.03; 'scripting': 0.05; 'mode,': 0.07; 'python': 0.07; 'scripts': 0.10; 'url:code': 0.11; 'essentially': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'asking.': 0.16; 'osx': 0.16; 'py3': 0.16; 'simplest': 0.16; 'solution?': 0.16; 'terms,': 0.16; 'timeout': 0.16; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'thu,': 0.22; 'objects': 0.24; 'apache': 0.25; 'subject:problem': 0.25; 'suspect': 0.25; 'received:209.85.161.46': 0.26; 'received:mail- fx0-f46.google.com': 0.26; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.161': 0.29; 'server': 0.29; 'cc:addr:python.org': 0.31; 'recreate': 0.31; 'it.': 0.31; 'page': 0.33; 'certain': 0.34; 'there': 0.35; 'point': 0.35; 'running': 0.36; 'problem.': 0.36; 'data': 0.37; 'some': 0.37; 'should': 0.37; 'received:209.85': 0.37; 'exactly': 0.37; 'run': 0.37; 'received:google.com': 0.38; 'url:google': 0.38; 'where': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'simple': 0.60; 'here:': 0.61; '2011': 0.62; 'url:p': 0.63; 'websites': 0.77; 'slow.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=+mPmYAXJn9PSydcUGf7ACJAr/DZLYVngIwvGVS4woEA=; b=efv2KWi4lCKltW6q5dVuCBBuGbi2t4f93+jNxafglppYxZNFR4QwE1d77JfvcBGjzQ 7c07hUvQamYj6dthtXRykGDTdplSr/zOvJo2yJ9xL/JXEiKk+ujHbdzm0grClp0WNYVt 9f01Fz0PIMebmFMh0hR6cZ+9vEl0QCJGGpWKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=wU4B29mP2quP8O4cie+C1O/MUrUYDpHjgAjRGt27j1s3MKJbOuz0rS+HPmcJzivO1A 2NzcqBd1/fSeR3rjW1HHv1vbXfVsTYZaieiBNN1siuOJYTwWVgdD84eWaPd8UHqVFGYO wQXXZd9OKDxm/CD87jviW8tA03suvSq/q8Gz0= MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Thu, 5 May 2011 11:07:42 -0600 Subject: Re: Need to solve the "Stateless HTTP" problem To: Gnarlodious Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304615293 news.xs4all.nl 81479 [::ffff:82.94.164.166]:48466 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4766 On Thu, May 5, 2011 at 8:22 AM, Gnarlodious 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/