# Gradle daemon disappeared unexpectedly (may have been killed or may have timed out). The daemon's log file: /home/user/.gradle/daemon/8.5/daemon-12345.out.log

- **ID:** `java/gradle-daemon-timeout`
- **Domain:** java
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The Gradle daemon ran out of memory or was killed by the OS due to resource constraints.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 8+ | active | — | — |

## Workarounds

1. **Increase the Gradle daemon's heap size in gradle.properties** (90% success)
   ```
   org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
   ```
2. **Restart the daemon with a clean state** (85% success)
   ```
   gradle --stop && gradle build
   ```

## Dead Ends

- **Increasing the heap size for all JVM processes globally** — The daemon may still be killed if the system has other memory-intensive processes. (70% fail)
- **Disabling the daemon entirely** — Builds become slower without the daemon, but it may work as a temporary fix. (50% fail)
