Hi Nicolas, I recently had the same problem with Google App Engine. Python apps seem to start up almost immediately but Java apps take a while. :-(
I made some changes to the ResolverUtil so that it could create a cache file and I set it up to read from the cache file if it exists instead of scanning packages. That cut load time in about half for me but it still wasn't enough. I'm considering committing the changes to Stripes but it worries me that it could become a problem if anyone forgets to replace the cache file after adding new classes that would normally be auto-discovered. Then I wrote a cron job that would hit the app once a minute to keep it alive. This seemed to work pretty well but maybe 1% of the time a new servlet engine would still get created resulting in slow startup. I've decided to move to EC2 because I need more control than I can get with GAE. I also ran into several things that were very difficult to debug because they worked fine on the local server but when I published them they stopped working the same. I really like GAE as a concept and I'll probably try it again in the future. Aaron nclemeur wrote: > Hello, > > I have an application based on Stripes that is running on Google App Engine > (GAE). It works great and this message is really not to complain or anything > but rather to ask if there are any tricks that could be used to reduce the > startup time of the application. I know that Stripes is already quite > lightweight and fast to start, but in the context of GAE, it is quite > important to start fast as applications that are not used for some time are > unloaded. So, if a request hit a dormant application, you can feel a delay > in the response. Currently, my startup time is around 5-6 secs. > > So anyone would know of any tricks to try to reduce that startup time? > > Again, I think the startup time is already pretty good, but if could reduce > it a little bit further that would be great. So any suggestion would be > welcomed. On the other hand it seems that google is working on improving > this. > > Cheers > > > Nicolas > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
