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 memory limit and number of threads used by the build process.
144
144
145
-
More precisely, the memory limit of the Java heap, so actual memory consumption can be even higher.
145
+
More precisely, the memory limit of the Java heap, so actual memory consumption can be higher.
146
146
Please check the [peak RSS](#glossary-peak-rss) reported at the end of the build to understand how much memory was actually used.
147
-
By default, the build process tries to only use free memory (to avoid memory pressure on the build machine), and never more than 32GB of memory.
148
-
If less than 8GB of memory are free, the build process falls back to use 85% of total memory.
147
+
By default, the build process will use up to 85% of system memory in containers or CI environments, but never more than 32GB of memory.
148
+
Otherwise, it tries to use available memory to avoid memory pressure on developer machines.
149
+
If less than 8GB of memory are available, the build process falls back to use 85% of system memory.
149
150
Therefore, consider freeing up memory if your machine is slow during a build, for example, by closing applications that you do not need.
150
-
It is possible to overwrite the default behavior, for example with `-J-XX:MaxRAMPercentage=60.0` or `-J-Xmx16g`.
151
+
It is possible to override the default behavior and set relative or absolute memory limits, for example with `-J-XX:MaxRAMPercentage=60.0` or `-J-Xmx16g`.
151
152
152
153
By default, the build process uses all available processors to maximize speed, but not more than 32 threads.
153
154
Use the `--parallelism` option to set the number of threads explicitly (for example, `--parallelism=4`).
0 commit comments