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 On Mon, Jun 27, 2011 at 7:20 AM, Spines <[email protected]> wrote: > 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? > > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
