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