Gradle daemon stops without logging the reason


#1

Under certain circumstances, the gradle daemon stops after each build instead of going idle. I checked that with “gradle --status” on a separate console. The corresponding log file does not give any reason for that. Consequently, the next build starts a new daemon.

Any hints will be most welcome!.
I am using gradle 4.0 under Windows 7.

Here are the last lines of the log file:

17:13:10.091 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
17:13:10.117 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
17:13:10.117 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: finished waiting for DaemonCommandExecution[command = Build{id=b9ece402-db9b-40d1-a988-b680bb9e29aa.1, currentDir=C:\CURDIR}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:62903 to /127.0.0.1:62904]. Result org.gradle.launcher.daemon.server.DaemonStateCoordinator@7ea44615 with state Busy
17:13:10.118 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: completed DaemonCommandExecution[command = Build{id=b9ece402-db9b-40d1-a988-b680bb9e29aa.1, currentDir=C:\CURDIR}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:62903 to /127.0.0.1:62904]
17:13:10.118 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer
17:13:10.118 [INFO] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Marking the daemon as idle, address: [f7e45203-b100-48a8-9a20-338470c00717 port:62903, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
17:13:10.118 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [f7e45203-b100-48a8-9a20-338470c00717 port:62903, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
17:13:10.120 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
17:13:10.120 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
17:13:10.122 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
17:13:10.122 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
17:13:10.122 [DEBUG] [org.gradle.launcher.daemon.server.exec.ReturnResult] Daemon is dispatching the build result: Success[value=null]
17:13:10.123 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 15: dispatching class org.gradle.launcher.daemon.protocol.Success
17:13:10.125 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Finishing executing command: Build{id=b9ece402-db9b-40d1-a988-b680bb9e29aa.1, currentDir=C:\CURDIR}
17:13:10.135 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 16: received class org.gradle.launcher.daemon.protocol.Finished
17:13:10.136 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 16: Received non-IO message from client: org.gradle.launcher.daemon.protocol.Finished@72440f96
17:13:10.136 [DEBUG] [org.gradle.internal.remote.internal.inet.SocketConnection] Discarding EOFException: java.io.EOFException
17:13:10.136 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 16: received null
17:13:10.136 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 16: Received end-of-input from client.
17:13:10.138 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Received finished message: null
17:13:10.138 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 15: stopping connection
17:13:10.139 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 15: stopping connection