Skip to content
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] jdk21 Unrecognized VM option 'UseBiasedLocking' #8808

Open
3 tasks done
taomaree opened this issue Oct 10, 2024 · 0 comments · May be fixed by #8809
Open
3 tasks done

[Bug] jdk21 Unrecognized VM option 'UseBiasedLocking' #8808

taomaree opened this issue Oct 10, 2024 · 0 comments · May be fixed by #8809

Comments

@taomaree
Copy link

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

CentOS 7

RocketMQ version

5.3.1

JDK Version

OpenJDK 21

Describe the Bug

runbroker.sh set JAVA_OPT="${JAVA_OPT} -XX:-UseLargePages -XX:-UseBiasedLocking" , but JDK 21 no support it, and start broker failed.
after remove -XX:-UseBiasedLocking, start broker OK.
or add -XX:+IgnoreUnrecognizedVMOptions, start broker OK.

Steps to Reproduce

  1. set JDK 21 JAVA_HOME
  2. ./bin/mqbroker
  3. start failed: Unrecognized VM option 'UseBiasedLocking'
  4. remove -XX:-UseBiasedLocking or add -XX:+IgnoreUnrecognizedVMOptions in bin/runmqbroker.sh or bin/runbroker.cmd
  5. ./bin/mqbroker
  6. start OK

What Did You Expect to See?

start broker OK with JDK 21

What Did You See Instead?

Unrecognized VM option 'UseBiasedLocking'

Additional Context

https://stackoverflow.com/questions/74027869/unrecognized-vm-option-usebiasedlocking-error-could-not-create-the-java-virtu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant