I have very simple app which consists of one file. Code is below. When
I just deploy application and open form my instance takes ~37 MB
Memory. I can assume this is app engine itself. If I start using this
form to post 1Mb, memory is raised unexpectedly after each post
(approximately for 2 MB after each post, but sometimes it even more).
If I post 2 MB it is raised on 12 MB etc...I can't find dependency
between post size and memory usage, but it's either memory leaks in
code below, or weird behavior in GAE.
Any thoughts will be useful. Thanks!
[code]
import cgi
import logging
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
class MainHandler(webapp.RequestHandler):
def get(self):
logging.info("get...")
def post(self):
logging.info("posting...")
s = cgi.escape(self.request.get('content'))
self.response.out.write("Post length: %s" % l)
application = webapp.WSGIApplication([('/', MainHandler)], debug=True)
util.run_wsgi_app(application)
[/code]
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en.