Latency while handling a request in GAE

82 views
Skip to first unread message

Kajal Gupta

unread,
Sep 21, 2016, 9:32:48 AM9/21/16
to Google App Engine
Hello,

I am facing latency issue while handling an API request. Please see the trace attached. Basically here I am unable to understand why there is wait time of 6,687 ms before any processing starts. This is happening quite often and some time latency increasing to 10ms. Please explain this, It would be great help.

Thanks.
Screenshot from 2016-09-21 18:25:50.png

Nick (Cloud Platform Support)

unread,
Sep 22, 2016, 7:42:21 PM9/22/16
to Google App Engine
Hey Kajal,

Are the calls to memcache.get the first line of code in the request handler? And what do the corresponding logs (see here how to read the logs) show in the Developers Console for requests like these in regard to the two pieces of data "cpu_ms", "ms", and "pending_ms"?

Cheers,

Nick
Cloud Platform Community Support

Kajal Gupta

unread,
Sep 29, 2016, 12:55:21 AM9/29/16
to Google App Engine
Hi Nick,

Thanks for your apt replay and apologises for my delayed response.
Here is the values as per logs for this URI:
ms=6907 cpu_ms=94 cpm_usd=2.9727e-8 loading_request=0

Also digging logs I found thatpendingTime: "6.683222770s" under protoPayload.

Thanks.
Reply all
Reply to author
Forward
0 new messages