@@ -20,7 +20,8 @@ native-image --enable-monitoring=jcmd YourApplication
2020```
2121
2222When 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
2526native-image --enable-monitoring=jcmd,jfr,heapdump YourApplication
2627```
@@ -66,23 +67,23 @@ jcmd -l
6667
6768The 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