The main application is started by the following:
app=web.application(auth_urls,globals())
web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func,
addr)
app.run()
runfcgi function is the following (from wsgi.py):
def runfcgi(func, addr=('localhost', 8000)):
import flup.server.fcgi as flups
return flups.WSGIServer(func, multiplexed=False,
bindAddress=addr).run()
Started the webpy application with the following:
spawn-fcgi -f /var/www/main.py -a $LOCAL_IP -p $WEB_PORT
The guide that I followed to setup webpy and nginx was:
http://webpy.org/cookbook/fastcgi-nginx
On Jun 14, 12:25 pm, Anand Chitipothu <[email protected]> wrote:
> 2011/6/14 Hugh <[email protected]>:
>
> > Hey,
> > I have been trying to get a web server using nginx and webpy on an
> > embedded board running linux. This board only has 64mb of memory. When
> > running a page with an XML post loop to the server every 10 seconds
> > the device increases in memory by about 20k every request. Eventually
> > the device runs out of memory and Linux starts killing off processes
> > until either Nginx or the python application are ended.
>
> > The Webpy application gets to about 38mb before linux starts shutting
> > programs down. I'm leaning towards the possibility that it is a memory
> > leak in the application i'm running or alternatively it could be nginx/
> > webpy is Setup incorrectly for an embedded device.
>
> > Any assistance would be appreciated.
>
> Which WSGI adapter are you using? uwsgi?
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.