Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion documentation/documentation.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,12 @@ tasks {
}

asciidoctorPdf {
setExecutionMode(JAVA_EXEC) // Avoid classpath conflicts with other Gradle plugins (e.g. JReleaser)
// Avoid classpath conflicts with other Gradle plugins (e.g. JReleaser)
// Avoid propagating apparent memory leaks in Asciidoctor/JRuby to Gradle daemon.
setExecutionMode(JAVA_EXEC)
jvm {
maxHeapSize = "512M"
}
sources {
include("user-guide/index.adoc")
}
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ version = 6.1.0-SNAPSHOT
# For backward compatibility checks
apiBaselineVersion = 6.0.1

# We need more metaspace due to apparent memory leak in Asciidoctor/JRuby
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure the workaround was only needed for asciidoctorPdf and not for asciidoctor (HTML) as well but I guess we'll find out. 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good point, we'll see. Hopefully it's been a while and things have been fixed. Btw, if metaspace needs a bump, it's not necessarily a leak, it's just huge JARs with too many classes on the classpath.

org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configuration-cache.parallel=true
Expand Down