-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: Proxy memory allocation helper #2605
base: develop
Are you sure you want to change the base?
Conversation
Job Summary for GradleBuild and test :: BuildAndPackageWithUnitTests
|
Job Summary for GradleBuild and test :: BuildAndPackageWithUnitTests
|
if [ -z "$params" ]; then | ||
echo "$1=$xms $xmx" >> "$params_file" | ||
else | ||
local pattern="-Xms[0-9]+[mg]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to documentation, Xmx and Xms can also be set in k or in plain bytes. Also unit suffix should be case insensitive.
|
||
function find_xmx() { | ||
if [[ "$1" =~ -Xmx([0-9]+[mg]) ]]; then | ||
echo "${BASH_REMATCH[1]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Xmx can be specified multiple times, the last one is used. To make things even more complicated, there's also equivalent -XX:MaxHeapSize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mloitm about k and just units, my thinking was that for proxy nobody will use such small units when 512m is declared as minimum unless someone will want to allocate very precise amount of memory
Initial implementation Refs: XRDDEV-55
This reverts commit ad32823bfc51c294efb8ee7fe76fce260a635f33.
Refs: XRDDEV-55
fix redhat build Refs: XRDDEV-55
2d45594
to
fd181ac
Compare
|
Job Summary for GradleBuild and test :: BuildAndPackageWithUnitTests
|
No description provided.