-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] VM option 'UseG1GC' must be enabled via -XX:+UnlockExperimentalVMOptions in JDK 1.8 #7996
Comments
…eG1GC" For fixing issue apache#7996, I have updated runbroker.sh
I can't reproduce it using |
Thank you, I will try Oracle JDK 1.8.0_291 on my laptop |
Yeah, This issue occurs on specific JDK versions:
|
G1GC is stable and not experimental since jdk 7u4 (https://www.oracle.com/java/technologies/javase/7u4-relnotes.html). IMO the JDK provider should fix it and explain the reason for inconsistency with release notes, maybe G1GC is indeed unstable in that version (but it's rare). |
Before Creating the Bug Report
I found a bug, not just asking a question, which should be created in GitHub Discussions.
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
OS: ("macOS 14.3.1 (23D60)")
RocketMQ version
branch: (release-5.2.0) version: (5.2.0) Git commit: (0b612ff)
JDK Version
Compiler: ("Oracle JDK 1.8.0_391") OS: ("macOS 14.3.1 (23D60)")
Describe the Bug
while I am creating Rocket MQ on my local by following https://rocketmq.apache.org/docs/quickStart/01quickstart/;
I got failed without any useful information. after reaching, I changed my shell command, the following information was shown:
$ sh ./mqbroker -n localhost:9876 --enable-proxy
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
So I have updated some commands and raised a PR.
Steps to Reproduce
Just follow the official document
https://rocketmq.apache.org/docs/quickStart/01quickstart/
when JDK 8 is in use, this problem will be reproduced.
What Did You Expect to See?
$ sh ./mqbroker -n localhost:9876 --enable-proxy
Tue Apr 02 00:18:04 HKT 2024 rocketmq-proxy startup successfully
What Did You See Instead?
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Additional Context
I have raised a PR to avoid this problem
The text was updated successfully, but these errors were encountered: