Skip to content

Commit 86defa8

Browse files
tbogdanovawoainikk
authored andcommitted
For Train: Decrease memory for Kotlin Daemons and Gradle Daemon
Add -XX:HeapDumpPath
1 parent 93cb1d2 commit 86defa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ version=3.1.2-SNAPSHOT
3131
# * '-Dkotlin.daemon.options=autoshutdownIdleSeconds=30'
3232
# To save some memory, shutting down Kotlin Daemon used for buildSrc compilation after 30 seconds of idle.
3333
# See: https://github.com/gradle/gradle/issues/29331
34-
org.gradle.jvmargs=-Xms2g -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options=-Xmx512m,Xms256m,-XX:MaxMetaspaceSize=256m,XX:+HeapDumpOnOutOfMemoryError
34+
org.gradle.jvmargs=-Xms2g -Xmx5g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options=-Xmx512m,Xms256m,-XX:MaxMetaspaceSize=256m,XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./oom_dump.hprof
3535
kotlin.daemon.jvmargs=-Xms512m -Xmx2g -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError
3636
# Gradle Doctor might increase memory consumption when task monitoring is enabled, so it is disabled by default.
3737
# Some features can't work without task monitoring:

0 commit comments

Comments
 (0)