My guess is that they have some sort of "soft" undeploy which tells jetty to purge the app's code and data from its memory (after some period of inactivity). Then when a request arrives jetty re-loads the app (meaning a full restart of the app). Each jetty might be supporting multiple apps. Each machine might be running multiple jettys. When an unloaded app is loaded back into jetty it may or may not go back into the same jetty it was in previously, but into one that has the least amount of activity. This is all pure speculation.
Brian wrote: > I assume they aren't doing a full JVM startup every warm up, are they? > Seems they could load it into the JVM memory.. then page it out to > disk or something. Somehow has to be a way to keep it scalable to many > 1000s of users, while not taking 7 seconds to "wake up" > > > > On Dec 12, 8:20 pm, Rusty Wright <[email protected]> wrote: >> Yes, I need try that, eventually, but probably the biggest source of my >> startup slowness is that I'm using annotations to specify classes that are >> spring beans and that uses spring's component scanning, which means spring >> is scanning every jar in my lib directory. So currently my spring xml files >> are pretty much bare of any bean definitions. >> >> Eduardo Ram rez wrote: >> >>> On Sat, Dec 12, 2009 at 20:06, Rusty Wright <[email protected] >>> <mailto:[email protected]>> wrote: >>> I'm using Spring and I've heard that it makes apps slow to start >>> with all of its instantiating and wiring things together. >>> Have you tried to lazy load your beans? In my local tests I have a >>> very fast startup. >>> http://static.springsource.org/spring/docs/3.0.x/spring-framework-ref... >>> http://static.springsource.org/spring/docs/3.0.x/spring-framework-ref... >>> Hope it helps, >>> -- >>> Eduardo Ram rez >>> http://kynes.frenopatico.net >>> -- >>> 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. > > -- > > 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. > > -- 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.
