Skip to content

Commit 2dcd3e4

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

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ Performance reports, traffic visualizations, and health checkups are available f
3535

3636
### Use Flight Recorder
3737

38-
All Java runtimes on App Service that use the Azul JVMs have the Zulu Flight Recorder installed. You can use this to connect to the JVM and start a profiler recording or generate a heap dump. You can use the Flight Recorder to take a single timed recording, or to start a continuous recording with a fixed buffer size.
39-
40-
#### Start a timed recording
38+
All Java runtimes on App Service using the Azul JVMs come with the Zulu Flight Recorder. You can use this to record JVM, system, and Java level events to monitor the behavior and troubleshoot problems in your Java applications.
4139

4240
To take a timed recording you will need the PID (Process ID) of the Java application. To find the PID, open a browser to your web app's SCM site at https://<your-site-name>.scm.azurewebsites.net/ProcessExplorer/. This page shows the running processes in your web app. Find the process named "java" in the table and copy the corresponding PID (Process ID).
4341

@@ -49,24 +47,6 @@ jcmd <pid> JFR.start name=TimedRecording settings=profile duration=30s filename=
4947

5048
For more information, please see the [Jcmd Command Reference](https://docs.oracle.com/javacomponents/jmc-5-5/jfr-runtime-guide/comline.htm#JFRRT190).
5149

52-
#### Start a continuous recording
53-
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:
63-
64-
```azurecli
65-
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
66-
```
67-
68-
For more information, please see the [Jcmd Command Reference](https://docs.oracle.com/javacomponents/jmc-5-5/jfr-runtime-guide/comline.htm#JFRRT190).
69-
7050
#### Analyze `.jfr` files
7151

7252
Use [FTPS](deploy-ftp.md) to download your JFR file to your local machine. To analyze the JFR file, download and install [Zulu Mission Control](https://www.azul.com/products/zulu-mission-control/). For instructions on Zulu Mission Control, see the [Azul documentation](https://docs.azul.com/zmc/) and the [installation instructions](https://docs.microsoft.com/java/azure/jdk/java-jdk-flight-recorder-and-mission-control).

0 commit comments

Comments
 (0)