We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
Windows 11
rocketmq 5.2.0 release
Oracle JDK 1.8_u202
Run a namesrv, and check cmd line in Task Manager or Process Explorer, then you will see JAVA_OPT, like -Xmx, is missing.
This is JAVA_OPT config in runserver.cmd.
This is CMD line of the namesrv process.
namesrv.conf
enableControllerInNamesrv = true controllerDLegerGroup = group1 controllerDLegerPeers = n0-127.0.0.1:9877 controllerDLegerSelfId = n0
start-namesrv-w-c.ps1
$env:JAVA_OPT='-Duser.home=D:\data\mq_data\rocketmq-all-5.2.0-bin-release\data\namesrv' $env:ROCKETMQ_HOME='D:\data\mq_data\rocketmq-all-5.2.0-bin-release' D:\data\mq_data\rocketmq-all-5.2.0-bin-release\bin\mqnamesrv.cmd -c D:\data\mq_data\rocketmq-all-5.2.0-bin-release\data\namesrv.conf
.\start-namesrv-w-c.ps1
the java process cmd line should contain -Xmx300m and all other jvm options.
only JAVA_OPT what I set in start-namesrv-w-c.ps1 is kept.
I think it should be the problem of batch variable substitution. When I comment out the IF statement, JAVA_OPT comes back.
If possible, I would be happy to create a PR.
Related Issue, #8579, Related PR, #7507
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
Windows 11
RocketMQ version
rocketmq 5.2.0 release
JDK Version
Oracle JDK 1.8_u202
Describe the Bug
Run a namesrv, and check cmd line in Task Manager or Process Explorer, then you will see JAVA_OPT, like -Xmx, is missing.
This is JAVA_OPT config in runserver.cmd.
This is CMD line of the namesrv process.
Steps to Reproduce
namesrv.conf
. I think it does not matter, but just to reproduce my env.start-namesrv-w-c.ps1
..\start-namesrv-w-c.ps1
.What Did You Expect to See?
the java process cmd line should contain -Xmx300m and all other jvm options.
What Did You See Instead?
only JAVA_OPT what I set in
start-namesrv-w-c.ps1
is kept.Additional Context
I think it should be the problem of batch variable substitution. When I comment out the IF statement, JAVA_OPT comes back.
This is CMD line of the namesrv process.
If possible, I would be happy to create a PR.
Related Issue, #8579,
Related PR, #7507
The text was updated successfully, but these errors were encountered: