You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of classes, fields, and methods that are registered for reflection.
85
+
Large numbers can cause significant reflection overheads, slow down the build process, and increase the size of the native image (see [method metadata](#glossary-method-metadata)).
In this stage, the Graal compiler compiles all reachable methods to machine code.
108
+
The progress indicator is printed periodically at an increasing interval.
109
+
110
+
### <aname="stage-creating"></a>Creating Image
111
+
In this stage, the native image is created and written to disk.
112
+
Debug info is also generated as part of this stage (if requested).
113
+
114
+
#### <aname="glossary-code-area"></a>Code Area
115
+
The code area contains machine code produced by the Graal compiler for all reachable methods.
116
+
Therefore, reducing the number of reachable methods also reduces the size of the code area.
117
+
118
+
#### <aname="glossary-image-heap"></a>Image Heap
119
+
The image heap contains reachable objects such as static data, classes initialized at run-time, and `byte[]` for different purposes.
120
+
121
+
##### <aname="glossary-general-heap-data"></a>General Heap Data Stored in `byte[]`
122
+
The total size of all `byte[]` objects that are neither used for `java.lang.String`, nor [graph encodings](#glossary-graph-encodings), nor [method metadata](#glossary-method-metadata).
123
+
This typically dominates
124
+
125
+
##### <aname="glossary-graph-encodings"></a>Graph Encodings Stored in `byte[]`
126
+
The total size of all `byte[]` objects used for graph encodings.
127
+
These encodings are a result of [runtime compiled methods](#glossary-runtime-methods).
128
+
Therefore, reducing the number of such methods also reduces the size of corresponding graph encodings.
129
+
130
+
##### <aname="glossary-method-metadata"></a>Method Metadata Stored in `byte[]`
131
+
The total size of all `byte[]` objects used for method metadata, a type of reflection metadata.
132
+
To reduce the amount of method metadata, reduce the number of [classes registered for reflection](#glossary-reflection-classes).
133
+
134
+
#### <aname="glossary-other-data"></a>Other Data
135
+
The amount of data in the image that is neither in the [code area](#glossary-code-area) nor in the [image heap](#glossary-image-heap).
136
+
This data typically contains internal information for Native Image but it can also contain other information such as debug info.
The total number of garbage collections and total time spent in all garbage collectors.
142
+
A large number of collections or time spent in collectors usually indicates that the system is under memory pressure.
143
+
Increase the amount of available memory to reduce the time to build the image.
31
144
32
-
### <aname="step-analysis"/>Performing analysis
145
+
#### <aname="glossary-peak-rss"></a>Peak RSS
146
+
Peak [resident set size][rss_wiki] as reported by the operating system.
147
+
This value indicates the maximum amount of memory consumed by the build process.
148
+
If the [GC statistics](#glossary-garbage-collection) do not show any problems, the amount of available memory of the system can be reduced to a value closer to the peak RSS.
33
149
34
-
### <aname="step-universe"/>Building universe
150
+
#### <aname="glossary-cpu-load"></a>CPU load
151
+
The CPU time used by the process divided by the total time to build the image in percent.
152
+
Increase the number of CPU threads to reduce the time to build the image.
35
153
36
-
### <aname="step-parsing"/>Parsing methods
154
+
##Build Output Options
37
155
38
-
### <aname="step-inlining"/>Inlining methods
156
+
Run `native-image --expert-options-all | grep "BuildOutput"` to see all build output options:
157
+
158
+
```
159
+
-H:±BuildOutputBreakdowns Show code and heap breakdowns as part of the build output. Default: + (enabled).
Copy file name to clipboardExpand all lines: substratevm/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,4 @@ This changelog summarizes major changes to GraalVM Native Image.
12
12
* (GR-35152) Add -H:DisableURLProtocols to allow specifying URL protocols that must never be included in the image.
13
13
* (GR-35085) Custom prologue/epilogue/handleException customizations of @CEntryPoint must be annotated with @Uninterruptible. The synthetic methods created for entry points are now implicitly annotated with @Uninterruptible too.
14
14
* (GR-34935) More compiler optimization phases are run before static analysis: Conditional Elimination (to remove redundant conditions) and Escape Analysis.
15
-
* (GR-33602) Enable new user-friendly build output mode. The old output can be restored with `-H:-BuildOutputUseNewStyle`. Run `native-image --expert-options-all | grep "BuildOutput` to see all options for the new output.
15
+
* (GR-33602) Enable [new user-friendly build output mode](https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md). The old output can be restored with `-H:-BuildOutputUseNewStyle`.
0 commit comments