Gradle Daemon Downtime Extension

I use gradle and intellij to create my Android project. I noticed that after a minute the daemon process was completed, and I see in daemon-11188.out.log that the wait timeout is set to 60000 (idleTimeout = 60000).

Here is the line from the log:

15:51:46.747 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[uid=1be5dcbe-d445-4cf6-87d8-03e443368b0c,javaHome=C:\Program Files\Java\jdk1.7.0_45,daemonRegistryDir=C:\Users\ry_000\.gradle\daemon,pid=11624,idleTimeout=60000,daemonOpts=-Dfile.encoding=windows-1252]

I tried everything, but could not find a way to override this parameter.

Any help would be greatly appreciated, thanks.

+4
source share
2 answers

Well, it turned out that IntelliJ uses gradle api to set 1 minute for idle timeout. I fixed this by compiling the gradle launcher with a constant value of 3 hours. You can get the file here: gradle-launcher-1.9.jar

+6

, ExternalSystemExecutionSettings.java
, gradle IntelliJ Idea, idea.properties:

external.system.remote.process.idle.ttl.ms=6000000
+7

Source: https://habr.com/ru/post/1531584/


All Articles