I believe that, in normal situations, App Engine shuts down your
application if it has not had any request for the last 10 minutes. You
could set your cron to run it every five, and it should be good. I
however do not understand how your (Ikai) cron could take up so much
CPU use. I'd profile that.

On Jan 11, 4:58 am, Shrek <srikanth.pagad...@gmail.com> wrote:
> hi Ikai
>
> does appengine suffer from this anomaly even when "billing" is
> enabled?
> my application doesn't receive much traffic, but i still need it to be
> "ready".
> I don't mind enabling "billing" and don't even mind any $ value (as a
> consequence), but I would like to know if the problem will go away...
>
> Does anybody else know the answer for this question?
>
> Thanks
>
> On Nov 30 2009, 11:38 am, "Ikai L (Google)" <ika...@google.com> wrote:> 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 
> > <jeffg....@gmail.com>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
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B
> > >  unsubscr...@googlegroups.com>
> > > .
> > > 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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to