Objectify's session cache lives only for the length of a single request.
Unless you have a very odd use pattern, you should never need to call
clear().

If the OP forgot to add the ObjectifyFilter, he could certainly produce a
memory leak that way - the session would never be cleaned up.

Jeff


On Mon, Oct 21, 2013 at 3:52 PM, Vinny P <[email protected]> wrote:

> On Wed, Oct 9, 2013 at 11:07 AM, Joël Tinguely <
> [email protected]> wrote:
>
>> The server stores received data to the datastore using Objectify. At the
>> beginning, all requests are manage by 1 instance (class F1) with 0.8 QPS, a
>> latency of 80ms and 80MB of memory. But during the following hours, the
>> used memory increases and goes over the limit of F1 Instance. Now I have
>> 150MB memory instead of 128MB (limit of F1 class) and I stopped all the
>> traffic.
>>
>>
>> I use Memcache and datastore, don't have any cron or task queues and the
>> traffic is always the same. What are the possible reasons the average
>> memory increase?
>>
>>
>
> Objectify caches objects to speed up datastore operations. Try
> occasionally calling Objectify.clear() to clean out the cache and free up
> some memory.
>
> How long does it take for the application to go from 80 MB of memory to
> 150 MB?
>
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to