Search

Chapter 6. Configuring the heap size for Red Hat build of OpenJDK application on RHEL

download PDF

You can configure Red Hat build of OpenJDK to use a customized heap size.

Procedure

  • Add the maximum heap size option to the java command when running your application. For example, to set the maximum heap size to 100 megabytes, use the -Xmx100m option:

    $ java -Xmx100m <your_application_name>

Additional resources

Revised on 2024-05-09 14:47:55 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.