Yes. This is an issue we are working on. Basically, what happens is that instances of your application are elastic and loaded up upon demand. As your application grows, we will grow with you, but one of the consequences of this is that if your application is not receiving many requests, we may cycle you out to allocate more instances for an application with higher resource requirements.
We discourage running cron jobs to reduce startup time because ultimately, this will result in more aggressive cycling for all of our users. We're looking at several techniques to speed up Java application startup time. It's also been suggested that we should look at a billing enabled option for keeping a certain number of instances warm at all times. On Sun, Nov 29, 2009 at 11:22 PM, Jeffrey Goetsch <[email protected]>wrote: > I have noticed that the first request to a server instance has really high > CPU usage (7000+ milliseconds). After the server is up, the same request > takes only 20 milliseconds. I am not using Spring or any other framework. > It appears that the time is used during the first execute call on a > Datastore query. > > Is this a normal behavior? > > I have a cron job that I was running every 2 minutes, but that alone was > using 15% of my free quota. I have moved the cron to every minute, and I'm > seeing huge improvement on performance and quota. The cron used to take > 7000+ ms and now I am getting 20ms. Does this mean you should make sure > you have at least on cron running every minute? > > Thanks, > Jeffrey > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en.
