Jeff,

If by "going back to Java programming circa 2002", you mean not using 
annotation processing that requires full classpath scanning, I think that 
is in fact the only solution right now. Based on my limited research, I 
think you really need to stay away from that in order to avoid cold start 
time problems with GAE Java. In fact, the 'Best Practices' section of the 
Objectify wiki is one of the first places I saw this.

Although you say have no classpath scanning, the JAX-RS @Path processing is 
exactly that. In addition, I am almost sure that Guice is scanning the 
entire classpath for @Inject annotations as well. I wholeheartedly agree it 
stinks that you have to avoid leveraging awesome frameworks like those (and 
hence having better, more maintainable code) in order to have a properly 
functioning GAE Java application. I would gladly star any feature request 
you make in this direction. However, for now I am staying away.

As a reference, I use only Objectify and a few other standard java 
libraries, but no heavyweight frameworks, and my _ah_warmup requests have 
been recently averaging about 3.5 seconds.

-Mike

On Saturday, June 16, 2012 5:56:33 PM UTC-4, Jeff Schnitzer wrote:
>
> We're having a big problem with instance startup time.  It varies 
> between 20s and 60+ seconds, and lately it's tending towards the high 
> end.  We're starting to experience downtime because instances get 
> deadlined before they go active. 
>
> This app is well optimized for GAE.  There's no classpath scanning and 
> it doesn't try to eagerly load data.  On a good day it starts in 
> 20s... so at this point there's not really much I can do. 
>
> I have a cron task that performs a db cleanup once a minute, and since 
> crons can run over 60s I can eventually get one instance started, 
> which is enough to serve traffic at the moment.  But at this point I 
> can no longer deploy code over old versions because the appserver 
> restart will fail. 
>
> Please help. 
>
> Jeff 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/YHU-mGVlPAsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to