DefaultJvmMetadataDetector#getMetadataFromInstallation misses Xmx, so the JVM might allocate significant amount of memory #25628
Labels
a:bug
good first issue
Good for newcomers
has:reproducer
Indicates the issue has a confirmed reproducer
in:toolchains
Java Toolchains
Milestone
Expected Behavior
Gradle builds should not consume excessive amounts of memory.
See
gradle/subprojects/jvm-services/src/main/java/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetector.java
Lines 99 to 112 in 07cd5f4
Current Behavior
Gradle spawns
.../bin/java -cp . JavaProbe
without-Xmx
Context (optional)
See sample.
Java with defaults "commits" 1.15G ram while Java with
-Xmx32m
commits 0.11G only.The same with
-Xmx32m
:Steps to Reproduce
Run Gradle build with toolchains.
Gradle version
8.1.1
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: