The post data is Held to be used. +2M You "Get Self" +2M S= .... +2M
Tack on some for encoding. And such... you are at 9M pretty easy, so 12M is not unbelievable. > -----Original Message----- > From: [email protected] [mailto:google- > [email protected]] On Behalf Of merchant service > Sent: Tuesday, March 06, 2012 11:21 AM > To: Google App Engine > Subject: [google-appengine] memory leaks when posting data > > 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 google- > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. -- 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.
