Skip to content

Commit 861b074

Browse files
kaibocaiggailey777
authored andcommitted
Update functions-reference-java.md
Correct JVM configuration steps for consumption plan
1 parent a08f6d4 commit 861b074

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-functions/functions-reference-java.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ Functions lets you customize the Java virtual machine (JVM) used to run your Jav
208208
* `-Djava.net.preferIPv4Stack=true`
209209
* `-jar`
210210

211-
You can provide additional arguments in an app setting named `JAVA_OPTS`. You can add app settings to your function app deployed to Azure in the Azure portal or the Azure CLI.
211+
You can provide additional arguments in an app setting. You can add app settings to your function app deployed to Azure in the Azure portal or the Azure CLI.
212+
* In Windows/Linux dedicated and premium plan, use app setting named `JAVA_OPTS`
213+
* In the Windows Consumption plan, use app setting named `languageWorkers:java:arguments`.
214+
* In the Linux Consumption plan, use app setting named `languageWorkers__java__arguments`.
212215

213216
> [!IMPORTANT]
214217
> In the Consumption plan, you must also add the WEBSITE_USE_PLACEHOLDER setting with a value of 0 for the customization to work. This setting does increase the cold start times for Java functions.

0 commit comments

Comments
 (0)