-
Notifications
You must be signed in to change notification settings - Fork 59
How to customize JVM options on Azure Functions
kaibocai edited this page Jan 19, 2023
·
9 revisions
-
Dedicated and Premium Functions:
Create an app setting namedJAVA_OPTS
with a value of your customizing parameters for example “-Dexample=true”. If you already have the JAVA_OPTS app setting set, just append “-Dexample=true” to the existing value. -
Consumption Functions:
Create an app setting namedlanguageWorkers__java__arguments
with a value of “-Dexample=true”.
More examples can be find here: https://github.com/Azure/azure-functions-java-worker/issues/474
Dedicate plan (P1V2)
- default (without setting
JAVA_OPTS
): heap size is 711589888 bytes
- set
JAVA_OPTS
to-Xmx2g
: heap size is 2075918336 bytes
The sample apply to appsetting languageWorkers__java__arguments
on consumption plan.