Chapter 2. Running Java applications with Shenandoah garbage collector
You can run your Java application with the Shenandoah garbage collector (GC).
Prerequisites
- Installed Red Hat build of OpenJDK. See Installing Red Hat build of OpenJDK 21 on Red Hat Enterprise Linux in the Installing and using Red Hat build of OpenJDK 17 on RHEL guide.
Procedure
Run your Java application with Shenandoah GC by using -XX:+UseShenandoahGC JVM option.
$ java <PATH_TO_YOUR_APPLICATION> -XX:+UseShenandoahGC