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

  1. 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>

Revised on 2024-05-09 16:46:07 UTC

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.