2.2. JVM Example Configurations


The following configurations have been tested internally, and are provided as a baseline for customization. These configurations show various heap sizes, which allows users to find one appropriate for their environment to begin testing:

Example 2.1. 8GB JVM

-server
-Xms8192m
-Xmx8192m
-XX:+UseLargePages           
-XX:NewRatio=3
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+DisableExplicitGC
Copy to Clipboard Toggle word wrap

Example 2.2. 32GB JVM

-server
-Xmx32G
-Xms32G
-Xmn8G
-XX:+UseLargePages
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+DisableExplicitGC
Copy to Clipboard Toggle word wrap

Example 2.3. 64GB JVM

-server
-Xmx64G
-Xms64G
-Xmn16G
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+UseLargePages
-XX:+DisableExplicitGC
Copy to Clipboard Toggle word wrap
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. Explore our recent updates.

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.

Theme

© 2026 Red Hat
Back to top