From 7b63a02b172c2a1499f44227f9f9c5dfd95710d6 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 27 Sep 2022 15:21:37 -0400 Subject: [PATCH] Increase -Xmx for android builds from 2G to 4G --- examples/tv-app/android/App/gradle.properties | 2 +- examples/tv-casting-app/android/App/gradle.properties | 2 +- src/android/CHIPTest/gradle.properties | 2 +- src/android/CHIPTool/gradle.properties | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tv-app/android/App/gradle.properties b/examples/tv-app/android/App/gradle.properties index e94cae88f85eaa..7357abbe5e28e8 100644 --- a/examples/tv-app/android/App/gradle.properties +++ b/examples/tv-app/android/App/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects diff --git a/examples/tv-casting-app/android/App/gradle.properties b/examples/tv-casting-app/android/App/gradle.properties index d47c2f04446cf6..9bf7e81826e3d7 100644 --- a/examples/tv-casting-app/android/App/gradle.properties +++ b/examples/tv-casting-app/android/App/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects diff --git a/src/android/CHIPTest/gradle.properties b/src/android/CHIPTest/gradle.properties index 3026069c70e98f..a85d072fd2e1ed 100644 --- a/src/android/CHIPTest/gradle.properties +++ b/src/android/CHIPTest/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects diff --git a/src/android/CHIPTool/gradle.properties b/src/android/CHIPTool/gradle.properties index 164a67d7e5fcd2..71f72db8c81ef2 100644 --- a/src/android/CHIPTool/gradle.properties +++ b/src/android/CHIPTool/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m +org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects @@ -28,4 +28,4 @@ matterBuildSrcDir=../../../../out/android_arm64 # Semicolon-separated ABI filter list for building from source (aka IDE build). # Has no effect if matterSdkSourceBuild is false or matterBuildSrcDir is empty. # See https://developer.android.com/ndk/guides/abis#sa for a list of ABIs. -matterSourceBuildAbiFilters=arm64-v8a \ No newline at end of file +matterSourceBuildAbiFilters=arm64-v8a