Increase checkstyle heap size and reduce default metaspace size of gradle JVM
This commit is contained in:
parent
052552f3f6
commit
2be3000e40
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue