Memcache Exception (Java GAE Standard Environment)

129 views
Skip to first unread message

Sourav Chandra

unread,
Sep 25, 2016, 8:47:38 AM9/25/16
to Google App Engine
Hi,

We are using java based gae standard environment. Today we have received sudden surge of below memcache errors and subsequent appengine log

Memcache Error Message:

com.google.appengine.api.memcache.MemcacheServiceException: Memcache put: Error setting single item (...)


Subsequent Message:

After handling this request, the process that handled this request was found to have handled too many sequential errors, and was terminated. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you are likely returning errors continously from your application.

Could any of you let me know what could the reason? Also when does appengine emit the message?

Thanks,
Sourav

Sourav Chandra

unread,
Sep 25, 2016, 9:03:50 AM9/25/16
to google-a...@googlegroups.com
Full Stacktrace:

Caused by: com.google.appengine.api.memcache.MemcacheServiceException: Memcache put: Error setting single item (...) at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:557) at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:544) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$RpcResponseHandler.convertResponse(MemcacheServiceApiHelper.java:58) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:103) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:98) at com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:56) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:93) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:89) at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26) at com.google.appengine.api.memcache.MemcacheServiceImpl.put(MemcacheServiceImpl.java:74) at com.livestream.donations.utils.MemCacheUtils.put(MemCacheUtils.java:72) at com.livestream.donations.utils.LsApiUtils.getStripeDetailsFor(LsApiUtils.java:39) at com.livestream.donations.utils.LsApiUtils.getStripeIdFor(LsApiUtils.java:53) at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:66) at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:63) at java.util.concurrent.FutureTask.run(FutureTask.java:260) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1168) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:605)

Note: The object I am storing in the memcache key has only 2 String fields

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/N1wUbRym0i0/unsubscribe.
To unsubscribe from this group and all its topics, 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/01a63fbe-820f-487c-a998-e8b7535d3f22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Sourav Chandra

Senior Software Engineer

· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

sourav....@livestream.com

o: +91 80 4121 8723

m: +91 988 699 3746

skype: sourav.chandra

Livestream

"Ajmera Summit", First Floor, #3/D, 68 Ward, 3rd Cross, 7th C Main, 3rd Block, Koramangala Industrial Area,

Bangalore 560034

www.livestream.com

Nick (Cloud Platform Support)

unread,
Sep 29, 2016, 7:45:29 PM9/29/16
to Google App Engine
Hey Sourav,

This was likely caused by too many uncaught errors causing requests to fail. You should wrap the code performing memcache.put() calls in a try-catch block so you can retry the memcache.put() using an exponential back-off scheme.

Let me know if you have any comments or questions and I'll be happy to assist!

Cheers,

Nick
Cloud Platform Community Support 


On Sunday, September 25, 2016 at 9:03:50 AM UTC-4, Sourav Chandra wrote:
Full Stacktrace:

Caused by: com.google.appengine.api.memcache.MemcacheServiceException: Memcache put: Error setting single item (...) at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:557) at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:544) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$RpcResponseHandler.convertResponse(MemcacheServiceApiHelper.java:58) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:103) at com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:98) at com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:56) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:93) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:89) at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26) at com.google.appengine.api.memcache.MemcacheServiceImpl.put(MemcacheServiceImpl.java:74) at com.livestream.donations.utils.MemCacheUtils.put(MemCacheUtils.java:72) at com.livestream.donations.utils.LsApiUtils.getStripeDetailsFor(LsApiUtils.java:39) at com.livestream.donations.utils.LsApiUtils.getStripeIdFor(LsApiUtils.java:53) at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:66) at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:63) at java.util.concurrent.FutureTask.run(FutureTask.java:260) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1168) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:605)

Note: The object I am storing in the memcache key has only 2 String fields
Reply all
Reply to author
Forward
0 new messages