NIFI-12095 Increase default Xmx to 1g#7762
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for proposing this change @nandorsoma. Increasing the default heap size seems reasonable. As noted in the details, the minimum heap size should be changed to match the maximum.
| @@ -26,7 +26,7 @@ | |||
| <properties> | |||
| <!--Wrapper Properties --> | |||
| <nifi.jvm.heap.init>512m</nifi.jvm.heap.init> | |||
There was a problem hiding this comment.
The minimum heap size should be changed to match the maximum heap size.
There was a problem hiding this comment.
Thanks for the review @exceptionfactory. Just out of curiosity, what is the reason for that? I thought a rule of thumb is to initially have the minimum as the 50% of the maximum heap size.
There was a problem hiding this comment.
Setting the minimum heap size to the same as the maximum makes the overall process memory usage more predictable. There are other factors that contribute to total process memory usage, but heap is usually the primary contributor. Starting out with the same amount of heap as the maximum avoids unexpected surprises when the heap grows to handle cached objects.
|
We're not trying to share with other services generally. We want the 1GB or whatever is set. But if users want the ability to let it flex they could do so. For now it is better in our applications case to just take what we want from the get go. I'm not sure it matters much in practice these days frankly. |
|
LGTM, merging to main and support/nifi-1.x |
|
I left a comment on the JIRA. I only plan to merge to main. Don't see any reason to change the default at this point on the 1.x line. |
Signed-off-by: Joseph Witt <joewitt@apache.org>
Summary
NIFI-12095
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation