In my  contextInitialized(ServletContextEvent) we  set some global
variables --- static fields. Yet surprisingly, sometimes these are already
set when contextInitialized is called.

I thought that contextInitialized is called when, and only when, the JVM is
initialized.

Is it possible that GAE Standard Environment is initializing already
initialized instances? Does GAE somehow keep old instances around and
reinitialize them?

(I note some documentation on "resident instances
<https://cloud.google.com/appengine/docs/standard/java/how-instances-are-managed>",
but I am not sure if that is connected.)


(The config, as seen in the Cloud Console, includes

  automatic_scaling:
    min_idle_instances: 1
    max_idle_instances: 1
)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAD%3DB7cOcOjHAL_Jc7u1Fxg2-xSSJT9%2B5EE9HvLWRLELEWYoUNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to