Chapter 3. Configuring Red Hat build of OpenJDK to run with customized heap size
Red Hat build of OpenJDK 11 for Microsoft Windows can be configured to use a customized heap size.
Prequisites
- Installed Java Runtime
Procedure
Run the application by adding maximum heap size option to your java command line. For example to set the maximum heap size to 100 megabytes use the
-Xmx100m
option.$ java -Xmx100m <your-main-class>
Additional resources
Revised on 2024-05-09 16:46:07 UTC