yissachar / fave100

1 stars 2 forks source link

Improve instance startup #165

Open yissachar opened 10 years ago

yissachar commented 10 years ago

Current startup time:

Test site (F1 instance): 17 seconds Production site (F2 instance) 15 seconds

To some extent this is out of our control due to https://code.google.com/p/googleappengine/issues/detail?id=7706, however there are a few things we can investigate which may be able to speed things up:

yissachar commented 10 years ago

The above times were pulled from a single measurement. Pulling the last 10 startup times from AppEngine logs gives us the following results instead:

Test site: 13.7 seconds Production site: 10.9 seconds

yissachar commented 10 years ago

Removing lots of unused static content (2625e0a49188c24cf4a3f0a3bb3d04039ce6decc) seems to have marginally improved startup time:

Test site: 12.7 seconds

yissachar commented 10 years ago

Testing with server startup code omitted gives startup times of ~5s.

yissachar commented 10 years ago

enableJarClasses maven setting does not seem to affect startup time.

yissachar commented 10 years ago

Removing all handlers from web.xml besides for welcome file list and guice listener brings time down to 4s.