I started on JAVA GAE about 3 years ago. At that time I was trying to use Spring and the startup were very expensive. A made some experiments and in one of them I removed all frameworks and the statup decrease 90%.
Once Java is poor productive without frameworks, I give Python a try. Once it don´t need to load all the code on startup, I wrote a small Python framework (ZenWArch <https://bitbucket.org/renzon/zenwarch/wiki/Home>) to import a respective request handler code just when the application need it. Now the startup ocurrs in 1 to 3s on my applications, even when the source grows. I don´t like flames Language A versus Language B. It just seems that Python fits better on GAE. It´s just a matter of using the right tool for the problem. I hope Java get better on GAE. Sábado, 16 de Junho de 2012 18:56:33 UTC-3, Jeff Schnitzer escreveu: > > 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/-/akovssF2CpQJ. 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?hl=en.
