-
Notifications
You must be signed in to change notification settings - Fork 461
Make GC more aggressive in integration tests #4244
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
Make GC more aggressive in integration tests #4244
Conversation
BasicGradleIntegrationTestBasicGradleIntegrationTest
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.
Do you think, maybe it makes sense to just set "-XX:SoftRefLRUPolicyMSPerMB=10" as default arguments in tests?
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.
It's good to go, comments are mostly about some cleanup which could be done
| vararg arguments: String, | ||
| jvmArgs: List<String> = listOf("-Xmx2G", "-XX:MaxMetaspaceSize=1G"), | ||
| jvmArgs: List<String> = listOf("-Xmx2G", "-XX:MaxMetaspaceSize=800m", | ||
| "-XX:SoftRefLRUPolicyMSPerMB=10" // to free up the metaspace on JVM 8, see https://youtrack.jetbrains.com/issue/KT-55831/ |
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.
TBH, I was thinking about just providing this argument explicitly to withJvmArguments function call below in addition to jvmArgs, so that we don't need to repeat it, if we need to override other jvmArgs for test
WDYT?
| "dokkaJavadoc", | ||
| "dokkaGfm", | ||
| "dokkaJekyll", | ||
| jvmArgs = listOf( |
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.
Can it be removed? And in all other places?
a66dfe0 to
618d22d
Compare
618d22d to
b524276
Compare
BasicGradleIntegrationTest
No description provided.