title: Google App Engine application instance recycling and response times
body: <p>I posted this on GAE for Java group, but I hope to get some answers here quicker :)</p>
  
  <p>I decided to do some long-run performance tests on my application. I
  created some small client hitting app every 5-30 minutes and I run 3-5
  of threads with such client.</p>
  
  <p>I noticed huge differenced in response times and started to
  investigate issue. I found reason very quick.
  I am experiencing same issues as described in following topics:</p>
  
  <p><a href="http://www.google.com/url?sa=D&amp;q=http://groups.google.com/group/google-appengine/browse_thread/thread/fed86730708f2a9d/c6f13c9c48c08791%3Flnk%3Dgst%26q%3Drequest%2Bresponse%2Btime%23c6f13c9c48c08791&amp;usg=AFQjCNG6U6cscl2n1lsphsSMTIGMlw5wXg" rel="nofollow noreferrer">Uneven response time between connection to server to first byte sent</a></p>
  
  <p><a href="http://groups.google.com/group/google-appengine/browse_thread/thread/7cd20b6fcfd38e5d" rel="nofollow noreferrer">Application instances seem to be too aggressively recycled</a></p>
  
  <p><a href="http://groups.google.com/group/google-appengine-java/browse_thread/thread/755b7ba89db70213/4b39d900479ba1de?lnk=gst&amp;q=application+instance#4b39d900479ba1de" rel="nofollow noreferrer">Getting 'Request was aborted after waiting too long to attempt to service your request.' after application idle</a></p>
  
  <p>I am using Springframework, it tkes around 18-20s to start app
  instance, which is causing response times to take from 1s (when
  requests hits running app - very rare) to 22s when fresh application
  is created.</p>
  
  <p>Is there any solution for this?
  I was thinking about creating most basic servlet performing critical
  tasks (serving API call) and leave UI as is.
  But then I would loose all benefits of Springframework.</p>
  
  <p>Is there any solution for this?</p>
  
  <p>After solving (hacking) numerous constrains of App Engine which I hit
  while developing my app that is the one I think will make me move out
  of App Engine... that's simply to much to all the time think how to
  win with GAE problems than how to solve my application problems...</p>
  
  <p>Any help?</p>
  
  <p>Regards
  Konrad </p>