Hi,

You're not doing anything wrong: just that after long inactivity, your
app gets unloaded from app engine, when it restarts (here because of
cron), it needs to reload classes and al.  Hence the message.

This happens fairly often when the application doesn't have much
trafic.

regards
didier

On Oct 30, 7:10 am, Richard Berger <[email protected]> wrote:
> Just testing to see if I can get a basic cron job working. Set up the
> cron.xml, create a servlet, modify web.xml, deploy. And every two
> minutes it runs and correctly prints the message I am logging:
>
> W10-29 09:44PM 30.390
> com.rb.commit1.DailyNotificationServlet doGet: This is our cron test
>
> But (a) CPU usage is high (1400ms) and that is because my app code is
> being loaded over and over as shown by the message that I also get
> every two minutes:
> I10-29 09:44PM 30.413
> This request caused a new process to be started for your application,
> and thus caused your application code to be loaded for the first time.
> This request may thus take longer and use more CPU than a typical
> request for your application.
>
> My servlet code seems as simple as possible:
>
> public class DailyNotificationServlet extends HttpServlet {
>
> private static Logger logger =
> Logger.getLogger(DailyNotificationServlet.class.getName());
>
> public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws IOException {
>
> logger.warning("This is our cron test");
>
> }
> }
>
> Any idea of what I might be doing wrong?
>
> Thanks so much,
>
> RB

-- 
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.

Reply via email to