-
Notifications
You must be signed in to change notification settings - Fork 430
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
Memory usage increased significantly in 1.9.10 #3309
Comments
Hey @sgrimm and @ianbrandt! |
Hi @whyoleg, A colleague looked into upgrading our project from Dokka 1.9.20 to 2.0.0. Unless there was a misunderstanding, they found that the Is that correct regarding how Dokka 2.0.0 documentation aggregation currently works? We have over 450 subprojects in our build. Maintaining a flat list of the ones that should be included in documentation aggregation wouldn't be very practical for us. I believe any scripting to try to accumulate subprojects that have the Dokka plugin applied may end up violating the requirements for Gradle's upcoming Project Isolation and Parallel Configuration features. We wouldn't want to do that because parallel configuration is probably going to offer us significant build performance gains. |
Describe the bug
Dokka 1.9.10 requires over 30% more memory than 1.9.0.
Expected behaviour
The memory requirements stay roughly the same across patch versions.
To Reproduce
Example: https://github.com/terraware/terraware-server/
This project's
gradle.properties
sets the maximum JVM heap size to 4096MB../gradlew dokkaHtml
succeeds on both x86 and ARM systems using Dokka 1.9.0.Upgrade to Dokka 1.9.10 as in terraware/terraware-server#1420 and
./gradlew dokkaHtml
fails with a "Java heap space" error.Editing
gradle.properties
to set the maximum heap size to 5.5GB (-Xmx5632m
) causes Dokka to run successfully.Dokka configuration
Configuration of dokka used to reproduce the bug
Installation
Additional context
The example project uses a Dokka plugin to add Mermaid support, but commenting out that plugin in
build.gradle.kts
doesn't help.Are you willing to provide a PR?
Yes, but I have no idea where to start looking.
The text was updated successfully, but these errors were encountered: