Skip to content

Commit 81f525d

Browse files
author
Jason Freeberg
authored
Update configure-language-java.md
1 parent f040e0d commit 81f525d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/app-service/configure-language-java.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ For more information, please see the [Jcmd Command Reference](https://docs.oracl
5151

5252
#### Start a continuous recording
5353

54-
You can use Zulu Flight Recorder to continuously profile your Java application with minimal impact on runtime performance ([source](https://assets.azul.com/files/Zulu-Mission-Control-data-sheet-31-Mar-19.pdf)). To do so, run the following Azure CLI command to create an App Setting named `JAVA_OPTS` with the necessary configuration. The contents of the `JAVA_OPTS` App Setting are passed to the `java` command when your app is started.
54+
You can use Zulu Flight Recorder to continuously profile your Java application with minimal impact on runtime performance ([source](https://assets.azul.com/files/Zulu-Mission-Control-data-sheet-31-Mar-19.pdf)). To do so, run the following Azure CLI command to create an App Setting with the necessary configuration.
55+
56+
For Tomcat applications:
57+
58+
```azurecli
59+
az webapp config appsettings set -g <your_resource_group> -n <your_app_name> --settings CATALINA_OPTS=-XX:StartFlightRecording=disk=true,name=continuous_recording,dumponexit=true,maxsize=1024m,maxage=1d
60+
```
61+
62+
For Java SE applications:
5563

5664
```azurecli
5765
az webapp config appsettings set -g <your_resource_group> -n <your_app_name> --settings JAVA_OPTS=-XX:StartFlightRecording=disk=true,name=continuous_recording,dumponexit=true,maxsize=1024m,maxage=1d

0 commit comments

Comments
 (0)