-
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] Benchmark java17 version exception #8898
Comments
You can manually modify benchmark’s startup script benchmark/runclass.sh. In your case, you should change '-XX:PermSize=128m -XX:MaxPermSize=320m' to '-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m'. The PermSize option was used in Java 7 and earlier to set the initial size of the permanent generation space. However, starting from Java 8, this option was replaced by Metaspace. |
yes, After I modified the jvm parameters, it ran successfully
|
Is it possible to select appropriate parameters according to the java version? Java8 as the dividing line or abandon the original jvm parameters? |
The fix has been submitted to the develop branch, by adding an 'IgnoreUnrecognizedVMOptions' parameter, JVM parameters that are not recognized in higher versions are ignored, not perfect but useful. |
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
linux
RocketMQ version
rocketmq-all-5.2.0-bin-release/benchmark
JDK Version
java version "17.0.11" 2024-04-16 LTS
Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.11+7-LTS-207, mixed mode, sharing)
Describe the Bug
benchmark]# Unrecognized VM option 'PermSize=128m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Steps to Reproduce
sh producer.sh -h
What Did You Expect to See?
success
What Did You See Instead?
error
Additional Context
No response
The text was updated successfully, but these errors were encountered: