--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0e266a95-7f1b-47fa-9b89-30d01c795db9%40googlegroups.com.
To check if the memory consumption is due to jinja2 caching, make the jinja2 Environment object that you will later use for rendering with cache_size=0 -- this disables jinja2's caching, essentially. If that removes the issue, you've found your root cause. (If not, you need to keep digging). See http://jinja.pocoo.org/docs/2.9/api/#jinja2.Environment for more details.Alex
On Fri, Aug 4, 2017 at 11:58 PM, Richard Cheesmar <cheza...@gmail.com> wrote:
Hi, Atilla,
I'm using Python and I do use Jinja2 templates. The inconsistency is what baffles me. I seems to be random, no set requests suffers more than another. I get this on new user requests, on requests from old users whom may have cache.
It's hard to pin this down to anything in particular. I think boosting the instance will solve it, but I don't yet need this for most of the time, my traffic isn't that heavy and the payloads to and from server client are fairly light weight at the moment.
Richard
On Thursday, August 3, 2017 at 9:07:49 AM UTC+3, Attila-Mihaly Balazs wrote:Hello Richard,
What programming language/framework are you using? Please note that even though you might not "be doing anything" explicitly, the framework might have some caching logic (for example Jinja2 template cache) in the background that can lead to memory leaks. As they say: "an unbounded cache is just an other name for a memory leak" :-).
Attila
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
Is there any general tool successfully used to profile how much memory a request is using and whether it is leaking any memory? I still do not have a good general solution when I hit this problem.
Thanks,PK
On Sunday, July 30, 2017 at 9:03:22 AM UTC-7, Richard Cheesmar wrote:I am seeing more of these, these days.
I just got the one above from a simple signup url that does nothing but render a simple template with a form.
How does that end up with 128MB and 238 requests in total? And as described in the error how does 128MB exceed 128MB?
It seems inconsistent to say the least, I don't normally get this from signup urls but have found I'm getting quite a few on other urls but as I said, it is not consistant.
Is there something else I should be looking at?
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3eb7418d-bdf7-41f6-8d2b-e818d3ca0df3%40googlegroups.com.