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
On Fri, Aug 4, 2017 at 11:58 PM, Richard Cheesmar <chezand...@gmail.com>
> 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.
> On Thursday, August 3, 2017 at 9:07:49 AM UTC+3, Attila-Mihaly Balazs
>> 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" :-).
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to email@example.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/
> For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.