Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

JVM Tuning for JBoss EAP

JBoss Enterprise Application Platform leverages a Java Virtual Machine to run its standalone server and host its applications. As we deploy our applications and leverage JBoss, we want to ensure our apps have optimal performance, and a portion of that lies in optimizing the JVM itself. In this hands-on lab, we explore a number of Java options we can set to ensure our JVM it running the best it can.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 21, 2025
Duration
15m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Check for Existing JVM Settings

    See if there are any existing Java settings to consider:

    echo $JAVA_OPTS
    

    We can now set our options by using export on the CLI, or via the console. Let's switch to the console by going to PUBLICIP:9990 and logging in as the admin user with the password pinehead.

  2. Challenge

    Set a Fixed Heap Size
    1. Navigate to the Configuration section of the HAL Management Console, then select System Properties.

    2. Click Add on the right-hand side of the table.

    3. Set the Name filed to JAVA_OPTS and the Value field to -Xms1024M -Xmx1024M.

    4. Click Add

  3. Challenge

    Enable the G1 Garbage Collector and Aggressive Optimizations

    The additional options we need also need to be set under the JAVA_OPTS variable. Select JAVA_OPTS from the table and click Edit. Enable both the garbage collection and aggressive optimizations. The full expression should be:

    -Xms1024M -Xmx1024M -XX:+UseG1GC -XX:+AggressiveOpts
    

    Select Save.

  4. Challenge

    Confirm the Changes
    1. Back on the CLI, open the standalone configuration file and search for JAVA_OPTS to confirm the changes:
    vim /opt/jboss-eap/standalone/configuration/standalone.xml
    

    Exit the CLI with exit.

    1. Restart the server:
    sudo systemctl restart jboss-eap-rhel
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight