Andrew Grosner
08/01/2025, 2:56 PMMartin
08/01/2025, 2:57 PM$ cat ~/.gradle/gradle.properties
# 30 seconds timeout for Gradle daemons
org.gradle.daemon.idletimeout=30000
You might want to set a higher value if you are working in a single project but the default is far too high IMOMartin
08/01/2025, 2:59 PMVampire
08/01/2025, 3:07 PMMartin
08/01/2025, 3:11 PMif the daemons see there is a memory shortage on the OS they should anways end themselves earlier if they are idleIs there code to do this?
Martin
08/01/2025, 3:12 PMMartin
08/01/2025, 3:13 PMVampire
08/01/2025, 3:14 PMIs there code to do this?No, pure magic 😄
Vampire
08/01/2025, 3:14 PMVampire
08/01/2025, 3:15 PMMartin
08/01/2025, 3:15 PMVampire
08/01/2025, 3:15 PMplatforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/LowMemoryDaemonExpirationStrategy.java
Vampire
08/01/2025, 3:16 PMHow do you detect the memory pressure on macOS (or even linux ?)Why should it be different from Windows?
Martin
08/01/2025, 3:20 PMVampire
08/01/2025, 3:21 PMMartin
08/01/2025, 3:22 PMMartin
08/01/2025, 3:23 PMMartin
08/01/2025, 3:23 PMAndrew Grosner
08/01/2025, 3:31 PMAndrew Grosner
08/01/2025, 3:40 PMMartin
08/01/2025, 3:41 PMRoldan Galan
08/01/2025, 4:54 PMMartin
08/01/2025, 4:55 PMRoldan Galan
08/01/2025, 4:58 PMMartin
08/01/2025, 4:59 PMJulien Plissonneau Duquène
08/02/2025, 1:37 PMHow do you detect the memory pressure on macOS (or even linux ?)It's indeed not that simple and slightly off-topic but I recommend this excellent talk to understand some of the issues on Linux: https://meetings-archive.debian.net/pub/debian-meetings/2025/DebConf25/debconf25-130-free-as-in-bytes.av1.webm Slides: https://salsa.debian.org/debconf-team/public/share/debconf25/-/blob/7112fe7e3a537b9223af4d09cd18808c6ed10025/slides/9-free-as-in-bytes.pdf