There are no "idle" instances, and one of the reasons is precisely what we
speak of: possible initialization issues. Instances are either wholly new
and spun up to secure scalability, or totally destroyed, in other words
either alive or dead, nothing in-between.

On 8 June 2017 at 02:53, Joshua Fox <[email protected]> wrote:

> The concept "Idle  Resident instance" might be relevant here.
>
>  Are instances switched from active to idle to active -- not actually
> stopping the JVM on switch to idle, and invoking *contextInitialized *on
> switch to  active?
>
>
> On Wed, Jun 7, 2017 at 6:17 PM, Joshua Fox <[email protected]> wrote:
>
>>
>>
>> On Wed, Jun 7, 2017 at 6:01 PM, 'George (Cloud Platform Support)' via
>> Google App Engine <[email protected]> wrote:
>>
>>> Hello Joshua,
>>>
>>> This is potentially a quite interesting issue. Which global variables or
>>> static fields do you intend to set?
>>>
>> Just some static variables which are set from Datastore to reflect some
>> global project-level state. Actually, it's a Singleton.
>>
>>
>>> How were these sometimes already set?
>>>
>>
>> Some code detects if the variable is nonnull and balks,and prints a log.
>>
>> Some examples and relevant detail would come handy. In fact,
>>> the contextInitialized method receives notification that the web
>>> application initialization process is starting; this is the general
>>> description.
>>>
>>
>> Right -- but  is *contextInitialized* called only once per JVM
>> initialization?  Or do  "resident instances
>> <https://cloud.google.com/appengine/docs/standard/java/how-instances-are-managed>"
>> get "put to sleep" and then awakened by calling *contextInitialized?*
>>
>> What detail can I provide? The following should be a good summary:  In
>> *contextInitialized *, we set a static field of the class to nonnull. At
>> the point right before it is set, it should always be null.
>>
>>> --
>>> 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/ms
>>> gid/google-appengine/3d76f372-6d20-48a8-bf3f-22b101a08f98%40
>>> googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/3d76f372-6d20-48a8-bf3f-22b101a08f98%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *JOSHUA FOX*
>> Principal Software Architect | Freightos
>>
>>
>> ☏* (Israel): *+972-545691165 <+972%2054-569-1165> | ☏* (US)*:  +
>> 1-3123400953 <(312)%20340-0953>* | Skype*: joshuafox.freightos
>> Smoother shipping with the world's online freight marketplace.
>> Online Marketplace
>> <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fcompare-book-manage-freight-quotes%2F&sa=D&sntz=1&usg=AFrqEzfMkBQBWsovNlg47sIDORa5FpHDkQ>
>>  / In the News
>> <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fabout-us%2Fin-the-news%2F&sa=D&sntz=1&usg=AFrqEzexnYSKKYuEW4zuC-QrR4X8G53w6Q>
>>  / Freightos Blog
>> <http://www.google.com/url?q=http%3A%2F%2Ffreightos.com%2Fresources%2Ffreightos-blog%2F&sa=D&sntz=1&usg=AFrqEzczY9ZxESxvh7ITnd_Al01Xyp4gdA>
>>
>>
>
>
> --
> *JOSHUA FOX*
> Principal Software Architect | Freightos
>
>
> ☏* (Israel): *+972-545691165 <+972%2054-569-1165> | ☏* (US)*:  +
> 1-3123400953 <(312)%20340-0953>* | Skype*: joshuafox.freightos
> Smoother shipping with the world's online freight marketplace.
> Online Marketplace
> <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fcompare-book-manage-freight-quotes%2F&sa=D&sntz=1&usg=AFrqEzfMkBQBWsovNlg47sIDORa5FpHDkQ>
>  / In the News
> <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fabout-us%2Fin-the-news%2F&sa=D&sntz=1&usg=AFrqEzexnYSKKYuEW4zuC-QrR4X8G53w6Q>
>  / Freightos Blog
> <http://www.google.com/url?q=http%3A%2F%2Ffreightos.com%2Fresources%2Ffreightos-blog%2F&sa=D&sntz=1&usg=AFrqEzczY9ZxESxvh7ITnd_Al01Xyp4gdA>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/Zy6xZioG6UQ/unsubscribe.
> To unsubscribe from this group and all its topics, 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%3DB7cNzbpbkgwO%3DUw%
> 2Bz4FShfu9YkNj6jUnv16ZpMgeRmcko9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-appengine/CAD%3DB7cNzbpbkgwO%3DUw%2Bz4FShfu9YkNj6jUnv16ZpMgeRmcko9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADx%3Dc4WO%3DQPS%3DiFUSA9Gagj-NaL2chHV7y--xuHbZDw831Cz0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to