Timeout with GAE Java

Posted by user242153 on Stack Overflow See other posts from Stack Overflow or by user242153
Published on 2010-01-02T03:32:05Z Indexed on 2010/06/01 18:03 UTC
Read the original article Hit count: 277

Filed under:
|

Hi,

I am having some issues with an app I have deployed on GAE. Specifically, I am intermittently running into the DeadlineExceededException where the server is not responding within the 30 seconds required.

What is odd is that the code is not overly complex, it should run in milliseconds. My guess is that the delay is in dealing with the persistence manager and accessing the datastore.

2 questions:

1) What is the best way to track where all of the CPU time on the server is being used up? Log files do not seem helpful and to make things more complicated the code runs very fast when I am running it locally

2) Any tips / best practices in dealing with the 30 second exception? What are the biggest drivers of this? Datastore? HTTP requests / responses?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about google-app-engine