Summary
This article discusses the importance of specifying the G1GC Garbage Collector when setting JVM options for Dremio to avoid unexpected behavior.
Reported Issue
When specifying JVM options for Dremio, it is crucial to ensure that the G1GC Garbage Collector is specified. If other JVM options are used without explicitly defining the G1GC collector, Dremio may not select the appropriate collector, leading to unexpected behavior.
Relevant Versions
N/A
Troubleshooting Steps
N/A
Cause
The issue is caused by a regex check to make sure that the G1GC is does not conflict with any existing options. However, this check can sometimes produce a false positive, e.g., -XX:+UseGCLogFileRotation
.
This issue is currently being tracked in the internal Jira DX-54165. It has been fixed in versions 23.0.0 and later, and was ported to 21.7.0 and 22.1.5.
Steps to Resolve
The issue can be easily avoided by always specifying -XX:+UseG1GC
alongside any other JVM options you wish to use. Note that it might appear twice on the command line in a ps
output, but this is purely cosmetic.
Tips & Tricks
N/A
Best Practices
N/A
Recommendations
N/A
FAQ
N/A