From 3b1f912b6b524c9ebb465381d025663d460e4a14 Mon Sep 17 00:00:00 2001 From: Vincent Potucek Date: Thu, 24 Apr 2025 10:27:05 +0200 Subject: [PATCH] Pull #34810: fix xmx args Signed-off-by: Vincent Potucek --- gradle.properties | 2 +- import-into-eclipse.md | 2 +- import-into-idea.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 54f2e67903cb..3c730d2c66b8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ version=7.0.0-SNAPSHOT org.gradle.caching=true -org.gradle.jvmargs=-Xmx2048m +org.gradle.jvmargs=-Xmx2g org.gradle.parallel=true kotlinVersion=2.1.20 diff --git a/import-into-eclipse.md b/import-into-eclipse.md index 9258de40dba5..8f058ea0c2a7 100644 --- a/import-into-eclipse.md +++ b/import-into-eclipse.md @@ -48,7 +48,7 @@ _When instructed to execute `./gradlew` from the command line, be sure to execut 1. While JUnit tests pass from the command line with Gradle, some may fail when run from the IDE. - Resolving this is a work in progress. - - If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m` + - If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g` ## Tips diff --git a/import-into-idea.md b/import-into-idea.md index bc6336f748ef..d706656d884e 100644 --- a/import-into-idea.md +++ b/import-into-idea.md @@ -19,7 +19,7 @@ IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details. 3. While JUnit tests pass from the command line with Gradle, some may fail when run from IntelliJ IDEA. Resolving this is a work in progress. If attempting to run all JUnit tests from within IntelliJ IDEA, you will likely need to set the following VM options to avoid out of memory errors: - -XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m + -XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g 4. If you invoke "Rebuild Project" in the IDE, you'll have to generate some test resources of the `spring-oxm` module again (`./gradlew :spring-oxm:compileTestJava`)