Skip to content
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

KSP2 in 1.0.18 results in significant memory pressure #1776

Closed
ZacSweers opened this issue Mar 4, 2024 · 3 comments
Closed

KSP2 in 1.0.18 results in significant memory pressure #1776

ZacSweers opened this issue Mar 4, 2024 · 3 comments

Comments

@ZacSweers
Copy link
Contributor

Continuing from ZacSweers/kotlin-compile-testing#196 (comment). I'm running simple tests in that case with 8GB of memory allocated to gradle daemon, which should be more than enough I'd think?

@ting-yuan
Copy link
Collaborator

May I know how you adjusted the heap? org.gradle.jvmargs=-Xmx????m didn't work for me, but the following does:

tasks.withType<Test> {
  minHeapSize = "1024m"
  maxHeapSize = "1024m"
}

@ZacSweers
Copy link
Contributor Author

Oh good point, I was just setting it via the gradle daemon memory but forgot tests have their own VMs. Will try that

@ZacSweers
Copy link
Contributor Author

Looks like that works, thanks!

@ZacSweers ZacSweers closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants