Skip to content

Commit 96b9fb1

Browse files
minor fixes
1 parent 6fcf8dd commit 96b9fb1

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

docs/reference-manual/native-image/DebuggingAndDiagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Native Image provides utilities for debugging and inspecting the produced binary
1616
- For performance analysis, see [Linux Perf Profiler Support in Native Image](PerfProfiling.md)
1717
- For an overall insight regarding build phases and the contents of a native executable, use [Build Reports](BuildReport.md)
1818
- For native memory tracking, see [Native Memory Tracking (NMT)](NMT.md)
19-
- See the [Java Diagnostic Command documentation](JCmd.md) for instructions on using `jcmd`.
19+
- See the [Java Diagnostic Command documentation](JCmd.md) for instructions on using `jcmd`.

docs/reference-manual/native-image/JCmd.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ native-image --enable-monitoring=jcmd YourApplication
2020
```
2121

2222
When enabling support for `jcmd`, you may also want to include additional monitoring features, such as JDK Flight Recorder or heap dumps.
23-
Including multiple monitoring features during the Native Image build process unlocks access to more diagnostic commands at runtime. For example:
23+
Including multiple monitoring features during the Native Image build process unlocks access to more diagnostic commands at runtime.
24+
For example:
2425
```shell
2526
native-image --enable-monitoring=jcmd,jfr,heapdump YourApplication
2627
```
@@ -66,23 +67,23 @@ jcmd -l
6667

6768
The following key-value pairs are supported:
6869

69-
| Name | Included with `--enable-monitoring=` | Description |
70-
|--------------------------|-------------------------------------------------|-----------------------------------------------------------------------------------------------------|
71-
| Compiler.dump_code_cache | Only available with Truffle runtime compilation | Print information about all compiled methods in the code cache. |
72-
| GC.heap_dump | heapdump | Generate a HPROF format dump of the Java heap. |
73-
| GC.run | Always available | Call `java.lang.System.gc()`. |
74-
| JFR.start | jfr | Starts a new JFR recording. |
75-
| JFR.stop | jfr | Stops a JFR recording. |
76-
| JFR.check | jfr | Checks running JFR recording(s). |
77-
| JFR.dump | jfr | Copies contents of a JFR recording to file. Either the name or the recording id must be specified. |
78-
| Thread.dump_to_file | Always available | Dump threads, with stack traces, to a file in plain text or JSON format. |
79-
| Thread.print | Always available | Print all threads with stacktraces. |
80-
| VM.command_line | Always available | Print the command line used to start this VM instance. |
81-
| VM.native_memory | nmt | Print native memory usage. |
82-
| VM.system_properties | Always available | Print native memory usage |
83-
| VM.uptime | Always available | Print VM uptime. |
84-
| VM.version | Always available | Print JVM version information. |
85-
| help | Always available | Display help information. |
70+
| Name | Included with `--enable-monitoring=` | Description |
71+
|--------------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------|
72+
| Compiler.dump_code_cache | Only available with Truffle runtime compilation | Print information about all compiled methods in the code cache. |
73+
| GC.heap_dump | heapdump | Generate a HPROF format dump of the Java heap. |
74+
| GC.run | Always available | Call `java.lang.System.gc()`. |
75+
| JFR.start | jfr | Starts a new JFR recording. |
76+
| JFR.stop | jfr | Stops a JFR recording. |
77+
| JFR.check | jfr | Checks running JFR recording(s). |
78+
| JFR.dump | jfr | Copies contents of a JFR recording to file. Either the name or the recording id must be specified. |
79+
| Thread.dump_to_file | Always available | Dump threads, with stack traces, to a file in plain text or JSON format. |
80+
| Thread.print | Always available | Print all threads with stacktraces. |
81+
| VM.command_line | Always available | Print the command line used to start this VM instance. |
82+
| VM.native_memory | nmt | Print native memory usage. |
83+
| VM.system_properties | Always available | Print system properties. |
84+
| VM.uptime | Always available | Print VM uptime. |
85+
| VM.version | Always available | Print JVM version information. |
86+
| help | Always available | Display help information. |
8687

8788
## Performance
8889

0 commit comments

Comments
 (0)