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

Dokka regularly OOMs gradle in a simple project #1508

Closed
ZacSweers opened this issue Sep 27, 2020 · 2 comments
Closed

Dokka regularly OOMs gradle in a simple project #1508

ZacSweers opened this issue Sep 27, 2020 · 2 comments
Labels

Comments

@ZacSweers
Copy link

ZacSweers commented Sep 27, 2020

Describe the bug
I have a small project that, when I run all the dokkaHtml tasks on my relatively powerful personal machine, easily exhausts Gradle's default memory configuration for a build

Expected behaviour
I understand nothing is free, but I think Dokka shouldn't OOM a trivial project and my first thought was there might be a memory leak.

Screenshots
N/A

To Reproduce
Check out this project and run ./gradlew dokkaHtml locally

Dokka configuration
Standard configuration

Installation

  • Operating system: macOS
  • Build tool: Gradle 6.6
  • Dokka version: 1.4.10

Additional context
Add any other context about the problem here

@ZacSweers ZacSweers added the bug label Sep 27, 2020
@ZacSweers
Copy link
Author

@Kordyjan
Copy link
Contributor

This duplicates #1405. It is worth noting that it is not a simple memory leak because jvm is running out of metaspace and not heap space. We are still investigating that. We had a few ideas where it is coming from but all of them turned out to be false.

For now you can increase your metaspace as a workaround. Just put org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m in gradle.properties. For some bigger projects 1G may be necessary instead of 512m.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants