You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-reference-java.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,37 +208,36 @@ Functions lets you customize the Java virtual machine (JVM) used to run your Jav
208
208
*`-Djava.net.preferIPv4Stack=true`
209
209
*`-jar`
210
210
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`.
211
+
You can provide additional arguments to the JVM by using one of the following application settings, depending on the plan type:
215
212
216
-
> [!IMPORTANT]
217
-
> In the Consumption plan, this setting does increase the cold start times for Java functions.
213
+
| Plan type | Setting name | Comment |
214
+
| --- | --- |
215
+
|[Consumption plan](./consumption-plan.md)|`languageWorkers__java__arguments`| This setting does increase the cold start times for Java functions running in a Consumption plan. |
The following examples show you how to add these settings. To learn more about working with application settings, see the [Work with application settings](./functions-how-to-use-azure-function-app-settings.md#settings) section.
218
219
219
220
### Azure portal
220
221
221
-
In the [Azure portal](https://portal.azure.com), use the [Application Settings tab](functions-how-to-use-azure-function-app-settings.md#settings) to add the `JAVA_OPTS` setting.
222
+
In the [Azure portal](https://portal.azure.com), use the [Application Settings tab](functions-how-to-use-azure-function-app-settings.md#settings) to add either the `languageWorkers__java__arguments` or the `JAVA_OPTS` setting.
222
223
223
224
### Azure CLI
224
225
225
-
You can use the [az functionapp config appsettings set](/cli/azure/functionapp/config/appsettings) command to set `JAVA_OPTS`, as in the following example:
226
+
You can use the [az functionapp config appsettings set](/cli/azure/functionapp/config/appsettings) command to add these settings, as shown in the following example for the `-Djava.awt.headless=true` option:
0 commit comments