feature: Automatically calculate the values for JVM parameters #7872
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ⅰ. Describe what this PR did
根据当前内存值自动计算 JVM 参数(如 Xmx 和 Xms)
Automatically calculate the values for JVM parameters such as Xmx and Xms based on the current memory value
对于windows只支持环境变量的内存分配,对于容器环境和虚拟机来说,4G的机器将采用70%,4G以上的则采用75%的内存
For Windows, only memory allocation through environment variables is supported. For container environments and virtual machines, 70% of memory will be used for machines with 4GB of memory, and 75% for those with more than 4GB
Ⅱ. Does this pull request fix one issue?
#7836
Ⅲ. Why don't you add test cases (unit test/integration test)?
对于windows的改动:支持通过环境变量来设置内存,当然也保留了原先的默认值
For changes to Windows: It now supports setting memory through environment variables, while also retaining the original default values
对于容器环境 For container environments:
对于虚拟机 For virtual machines:
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews