Where is the extra latency coming from?

30 views
Skip to first unread message

Spines

unread,
Jun 27, 2011, 10:20:09 AM6/27/11
to google-a...@googlegroups.com
I'm using GAE/Java.  I record the time it takes for my code to execute inside the code and output it to the logs as a debug message.   The time it takes for my code to execute is usually just a fraction of the time that is shown on the logs as the total time to respond to a request.

For example, in my code, my debug message will say that my code took 58ms to run.  But the log message will show: / 421ms 130cpu_ms 20api_cpu_ms, indicating that it took 421ms to return a response.  This is typical of every request, this is not due to loading requests.  Also, I am the only person accessing my app right now, so it's not because it's waiting for another request to finish processing first.

What causes this extra latency?  Is there any way I can fix it?


Waleed Abdulla

unread,
Jun 27, 2011, 5:04:31 PM6/27/11
to google-a...@googlegroups.com
Check to see if there is a "pending_ms" value in the logs. If so, then that indicates that your request was put in a queue to wait for it's turn to run. I had a long thread about a similar question a week or so ago (just search for pending_ms in the archives to find it). 

Waleed



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/y4Lka5msRooJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Spines

unread,
Jun 29, 2011, 10:53:44 AM6/29/11
to Google App Engine
There isn't any pending_ms.
Reply all
Reply to author
Forward
0 new messages