From 85e0311c424fb668053a7b104afb2da281b74427 Mon Sep 17 00:00:00 2001 From: TongTongStudio Date: Sat, 5 Sep 2026 09:14:25 +0800 Subject: [PATCH] =?UTF-8?q?build(gradle):=20=E8=B0=83=E6=95=B4=20Gradle=20?= =?UTF-8?q?JVM=20=E5=8F=82=E6=95=B0=E9=81=BF=E5=85=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=86=85=E5=AD=98=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6f79f6b4..6747793d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,8 +6,9 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx1024m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -# +# 增大 Gradle 守护进程堆内存,避免多模块构建时 Out of memory. Java heap space +org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -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