Since all that is known is that you have a handler that sometimes takes a very long time under certain conditions, and it's not RPC related, you'd have to post the code from the handler in order for the issue to be investigated.
If you're adverse to posting your application code on a public forum, you can get architecture support through a Cloud Platform Support package <https://cloud.google.com/support/>. I can say that the issue you're describing is not a known general issue with the platform, so it's most likely specific to your application. On Saturday, November 26, 2016 at 12:46:15 PM UTC-5, Thomas Baldauf wrote: > > Hi! I have been facing this issue permanently since I have my Java app > running on App Engine (Standard Edition), that is since 6 years. Users are > complaining more and more, so I have to do something about it: > Occasionally, response latency for even the most simple requests to my app > climbs up from some 100ms to crazy values like 20s, 30s or even 40s for no > apparent reason. I attach a screenshot showing the trace of such a request > from today. It was very quiet, so there weren't too many concurrent > requests and it's also not a cold start request. > > > <https://lh3.googleusercontent.com/-6BwDYtrHgpc/WDnIO34HkhI/AAAAAAAAM1I/MRgjx3VmGAIDB5TQ0We3sODTz7nR3F32QCLcB/s1600/trace.PNG> > > As you can see, there's only a datastore.get and then nothing for a very > long time, so it must be a very occupied (shared?) CPU just not being > available for my request to be handled. How to deal with such cases? > My approach was to move to App Engine Flexible which was very successful: > performance was constantly great, but now I can't use it any more as Google > decided to drop the compat runtime making my app incompatible for Flex Env. > > Maybe somebody from Google can investigate the issue and point me in the > right direction. I don't want to move away from App Engine as I would have > to rewrite lots of code depending on GAE SDK APIs. Please help! > > Thanks, > Thomas > -- 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 https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/41dd0879-09c3-4c73-ab71-ccd70ea5b3f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
