diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1cd3ec06e..0622fe87b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -107,7 +107,7 @@ Additional setup:
To build the project, run `./gradlew build`. Please note that for the initial build attempt, you might need to add the `--info` option, in order to respond to the prompt of accepting Gradle Terms of Service.
-Currently, very generous maximum heap size options are applied for Gradle's Java compilation tasks (search for `-Xmx` in [build.gradle.kts](build.gradle.kts)).
+Currently, quite generous maximum heap size options are applied for Gradle's Java compilation tasks (search for `-Xmx` in [build.gradle.kts](build.gradle.kts)).
To overwrite them, use `compileJavaJvmArgs` Gradle project property
(e.g. `./gradlew -PcompileJavaJvmArgs='-Xmx2g -XX:+HeapDumpOnOutOfMemoryError' build`,
or equivalently with an env var: `ORG_GRADLE_PROJECT_compileJavaJvmArgs='-Xmx2g -XX:+HeapDumpOnOutOfMemoryError' ./gradlew build`).
diff --git a/gradle.properties b/gradle.properties
index f5933af0d..5f9b79234 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,5 +1,6 @@
org.gradle.caching=true
org.gradle.configureOnDemand=true
-org.gradle.jvmargs=-Xmx6G
+# Let's use stricter memory limits by default to fit within the CI limits
+org.gradle.jvmargs=-Xmx3G
org.gradle.parallel=true
kotlin.stdlib.default.dependency=false