diff --git a/gradle.properties b/gradle.properties index 08e923d998..199ddfd524 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Keep all these properties in sync unless you know what you are doing! # We set '-Dlog4j2.disableJmx=true' to prevent classloader leaks triggered by the logger. # (Some of these settings need to be repeated in the test.jvmArgs blocks of each module) -org.gradle.jvmargs=-Dlog4j2.disableJmx -Xmx2g -XX:MaxMetaspaceSize=448m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Dlog4j2.disableJmx -Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 toolchain.compiler.jvmargs=-Dlog4j2.disableJmx=true -Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 toolchain.javadoc.jvmargs=-Dlog4j2.disableJmx=true -Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 toolchain.launcher.jvmargs=-Dlog4j2.disableJmx=true -Xmx2g -XX:MaxMetaspaceSize=448m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8 diff --git a/gradle/java-module.gradle b/gradle/java-module.gradle index 2dafca3692..1c033f8f88 100644 --- a/gradle/java-module.gradle +++ b/gradle/java-module.gradle @@ -459,6 +459,8 @@ tasks.checkstyleMain.source = 'src/main/java' tasks.checkstyleMain .exclude('org/hibernate/processor/util/NullnessUtil.java') .exclude('org/hibernate/internal/util/NullnessUtil.java') +// For some big files we need more heap memory than the default 512m for parsing +tasks.checkstyleMain.maxHeapSize = "640m" // define a second checkstyle task for checking non-fatal violations task nonFatalCheckstyle(type:Checkstyle) {