Skip to content

Commit c478f27

Browse files
committed
Applying doc updates + slides
1 parent f58555c commit c478f27

14 files changed

Lines changed: 119 additions & 19 deletions

File tree

docs/content/docs/jmc/_references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ description: >
55
Collection of useful references used to build this guide.
66
---
77

8-
* [JDK Mission Control User Guide](https://docs.oracle.com/javacomponents/doc/JDMUG/JDMUG.pdf)
8+
* [JDK Mission Control User Guide](https://docs.oracle.com/en/java/java-components/jdk-mission-control/9/user-guide/)
99
* [Hunting down code hotspots with JFR](https://bell-sw.com/announcements/2020/07/22/Hunting-down-code-hotspots-with-JDK-Flight-Recorder/)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: "Introduction"
33
weight: 10
44
description: >
55
Introduction into JDK Mission Control with Flight Recorder
6+
resources:
7+
- src: "**/*.png"
8+
- src: "**/*.jfc"
69
---
710

811
## JDK Flight Recorder
@@ -43,21 +46,23 @@ java -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -jar $SERVER_HOME/ja
4346

4447
## Start Flight Recording from JMC
4548

46-
![jmc_start](/jmc/start_flight_recording.png)
49+
{{< figure src="img/jfr-start.png" alt="JFR Start" >}}
4750

48-
This will open a window where you apply some settings for the recording. First select that you want this to be a __Continuous recording__ and for Event settings, we will import a template to get some consistent settings for profiling. Within the __Template Manager__, select __Import Files...__ and import the `open_jdk_9_.jfc` included in the [content/docs/jmc](https://github.com/cchesser/java-perf-workshop/tree/main/docs/content/docs/jmc) folder. It should appear as _Java Performance Workshop JDK9+ Profile_. Select this as the __Event Settings__ and then click on __Finish__.
51+
This will open a window where you apply some settings for the recording. First select that you want this to be a __Continuous recording__ and for Event settings, we will import a template to get some consistent settings for profiling. Within the __Template Manager__, select __Import Files...__ and import the `open_jdk_9_.jfc` by [downloading it here](jfc/open_jdk_9+.jfc) folder. It should appear as _Java Performance Workshop JDK9+ Profile_. Select this as the __Event Settings__ and then click on __Finish__.
4952

5053
For reference, these are the options for the template.
5154

52-
![](img/jfr-settings.png.png)
55+
{{< figure src="img/jfr-settings.png" alt="JFR Settings" >}}
5356

5457
First select that you want this to be a __Continuous recording__ and for Event settings we will use __Profiling on Server__.
5558

56-
![](img/jfr-start-wizard.png.png)
59+
{{< figure src="img/jfr-start-wizard.png" alt="JFR Configuration" >}}
60+
5761

5862
Once your flight recording is being captured in a _Continuous_ recording, it will show a ∞.
5963

60-
![jmc_started](img/jfr-started.png)
64+
{{< figure src="img/jfr-started.png" alt="JFR Started" >}}
65+
6166

6267
💡 You can see the JFR templates (continuous / profile) which are shipped as part of the JRE in: `$JAVA_HOME/jre/lib/jfr`. These become helpful if you are wanting to compare your settings to some of the standard ones.
6368

@@ -121,11 +126,11 @@ loadtest -n 1000 -c 15 "http://localhost:8080/search?q=a"
121126

122127
After you have played traffic through the service, you can then stop your flight recording from JMC.
123128

124-
![jmc_stop](img/jfr-stop.png)
129+
{{< figure src="img/jfr-stop.png" alt="JFR Stop" >}}
125130

126131
Then dump the whole recording.
127132

128-
![jmc_dump](img/jfr-dump.png)
133+
{{< figure src="img/jfr-dump.png" alt="JFR Dump" >}}
129134

130135
## The Flight Recording
131136

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)