Re: [appengine-java] Re: MemCache expiring around once a day - Cache Flushing

2010-05-27 Thread Jeff Schnitzer
This is the nature of memcache; you're sharing it with all the other
users of appengine.  Memory pressure will eventually push your
inactive values out of the cache.

Jeff

On Thu, May 27, 2010 at 1:17 PM, Rahul Juneja  wrote:
> It looks like it is removing the least recently used attributes from the
> cache. My datastore only had 20 elements key/ value pairs and appengine is
> flushing some of the least recently used out of those and now only 14 are
> available in cache.
> Is there some attribute which i need to set so that i doesn't flush any
> attributes from my cache.
> Thanks,
> Rahul
> --
> Rahul Juneja
> http://techlabs.thoughtclicks.com
>
>
> On Thu, May 27, 2010 at 9:40 AM, Rahul  wrote:
>>
>> Surprisingly, My cache has removed some elements from it overnite and
>> the number of elements left are few elements in the cache, is there
>> any specific reason you can think of.
>>
>> Its not completely empty now. Can this happen.
>>
>> Thanks,
>> Rahul
>>
>> On May 26, 10:27 pm, Rahul  wrote:
>> > It looks like that i have received the following error and memcache
>> > was cleared around that time. What it looks like is memcache service
>> > was unavailable. This kind of answers my question i guess until and
>> > unless there is something else which i am missing.
>> >
>> > Just for the information this happened around 05-26 05:03PM 25.194
>> > time.
>> >
>> > com.google.appengine.api.memcache.LogAndContinueErrorHandler
>> > handleServiceError: Service error in memcache
>> > com.google.appengine.api.memcache.MemcacheServiceException: Memcache
>> > getStatistics: exception
>> >         at
>> >
>> > com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall(Memcache
>> > ServiceImpl.java:
>> > 192)
>> >         at
>> >
>> > com.google.appengine.api.memcache.MemcacheServiceImpl.getStatistics(Memcach
>> > eServiceImpl.java:
>> > 750)
>> >         at
>> > com.thoughtclicks.filter.RedirectFilter.doFilter(RedirectFilter.java:
>> > 77)
>> >         at org.mortbay.jetty.servlet.ServletHandler
>> > $CachedChain.doFilter(ServletHandler.java:1157)
>> >         at
>> >
>> > com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo
>> > bUploadFilter.java:
>> > 97)
>> >         at org.mortbay.jetty.servlet.ServletHandler
>> > $CachedChain.doFilter(ServletHandler.java:1157)
>> >
>> > Caused by: com.google.apphosting.api.ApiProxy
>> > $CapabilityDisabledException: The API call memcache.Stats() is
>> > temporarily unavailable.
>> >
>> > On May 26, 9:43 pm, Rahul  wrote:
>> >
>> >
>> >
>> > > I have a  memcache and not to mention it does live between different
>> > > jvm instances when new jvm instances starts, i can access the cache
>> > > but once a while i don't find any values in cache and this happened
>> > > twice in last 24 hours. Is there any default expiration which is less
>> > > then 24-48 hours which i am not aware of.
>> >
>> > > Any help or pointers on this is appreciated.
>> >
>> > > Thanks,
>> > > Rahul
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: MemCache expiring around once a day - Cache Flushing

2010-05-27 Thread Rahul Juneja
It looks like it is removing the least recently used attributes from the
cache. My datastore only had 20 elements key/ value pairs and appengine is
flushing some of the least recently used out of those and now only 14 are
available in cache.

Is there some attribute which i need to set so that i doesn't flush any
attributes from my cache.

Thanks,
Rahul

--
Rahul Juneja
http://techlabs.thoughtclicks.com


On Thu, May 27, 2010 at 9:40 AM, Rahul  wrote:

> Surprisingly, My cache has removed some elements from it overnite and
> the number of elements left are few elements in the cache, is there
> any specific reason you can think of.
>
> Its not completely empty now. Can this happen.
>
> Thanks,
> Rahul
>
> On May 26, 10:27 pm, Rahul  wrote:
> > It looks like that i have received the following error and memcache
> > was cleared around that time. What it looks like is memcache service
> > was unavailable. This kind of answers my question i guess until and
> > unless there is something else which i am missing.
> >
> > Just for the information this happened around 05-26 05:03PM 25.194
> > time.
> >
> > com.google.appengine.api.memcache.LogAndContinueErrorHandler
> > handleServiceError: Service error in memcache
> > com.google.appengine.api.memcache.MemcacheServiceException: Memcache
> > getStatistics: exception
> > at
> >
> com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall(Memcache
> ServiceImpl.java:
> > 192)
> > at
> >
> com.google.appengine.api.memcache.MemcacheServiceImpl.getStatistics(Memcach
> eServiceImpl.java:
> > 750)
> > at
> > com.thoughtclicks.filter.RedirectFilter.doFilter(RedirectFilter.java:
> > 77)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1157)
> > at
> >
> com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo
> bUploadFilter.java:
> > 97)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1157)
> >
> > Caused by: com.google.apphosting.api.ApiProxy
> > $CapabilityDisabledException: The API call memcache.Stats() is
> > temporarily unavailable.
> >
> > On May 26, 9:43 pm, Rahul  wrote:
> >
> >
> >
> > > I have a  memcache and not to mention it does live between different
> > > jvm instances when new jvm instances starts, i can access the cache
> > > but once a while i don't find any values in cache and this happened
> > > twice in last 24 hours. Is there any default expiration which is less
> > > then 24-48 hours which i am not aware of.
> >
> > > Any help or pointers on this is appreciated.
> >
> > > Thanks,
> > > Rahul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.