Setting OmitStackTraceInFastThrow in GAE Standard Java 8

1,179 views
Skip to first unread message

Kishu Agarwal

unread,
Oct 2, 2018, 10:32:28 AM10/2/18
to Google App Engine
Is there a way to set this jvm flag OmitStackTraceInFastThrow on prod instances? And for that matter, how can we set our own jvm flags in production?

George (Cloud Platform Support)

unread,
Oct 2, 2018, 12:35:11 PM10/2/18
to Google App Engine
Hello Kishu, 

To set runtime arguments for JVM, you use the env_variables key in the app.yaml file. For more detail, you may have a look at the "The Java 8 / Jetty 9 Runtime" online documentation page, "Environment variables" sub-chapter. 

Kishu Agarwal

unread,
Oct 2, 2018, 1:58:54 PM10/2/18
to google-a...@googlegroups.com
But that is applicable for Flexible environment. I want to set this flag in Standard environment.


--
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/avL6GfV_A0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/47d01b86-6199-4bc9-8612-fb18a7ccf529%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mohammad I (Cloud Platform Support)

unread,
Oct 3, 2018, 5:38:21 PM10/3/18
to Google App Engine

Hello Kishu,


You are right to point out that “Environment Variables” can be set in the Flex environment only as outlined in the document shared by my colleague earlier. Under the Standard environment a user has no control on the JVM or any ability to modify the runtime environment. If a user needs more control he/she needs to use the Flexible environment to have more control on the JVM. See the following link to see the differences between Flexible environment and Standard environment.


Choosing your App Engine environment


However if you need to use the Flexible environment, you do not need to migrate your entire app to the Flexible environment.  Instead you can create a micro service under the Flexible environment to serve your needs. Your existing service running in the standard environment can call the other services using HTTP, Cloud Tasks alpha, or Cloud Pub/Sub. Please see the following link for details.


When to use the flexible environment




Kishu Agarwal

unread,
Oct 4, 2018, 10:17:06 AM10/4/18
to Google App Engine
Hey Mohammad I,

Thanks for the information. I will surely look into it.
Reply all
Reply to author
Forward
0 new messages