Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PaulWoitaschek/DaemonHunter
Freeing up memory used by old Kotlin and Gradle Daemons
https://github.com/PaulWoitaschek/DaemonHunter
android gradle kotlin
Last synced: 21 days ago
JSON representation
Freeing up memory used by old Kotlin and Gradle Daemons
- Host: GitHub
- URL: https://github.com/PaulWoitaschek/DaemonHunter
- Owner: PaulWoitaschek
- License: apache-2.0
- Created: 2020-10-17T19:50:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T12:24:11.000Z (about 2 years ago)
- Last Synced: 2024-05-14T19:16:43.930Z (7 months ago)
- Topics: android, gradle, kotlin
- Language: Kotlin
- Homepage:
- Size: 16.6 KB
- Stars: 29
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - PaulWoitaschek/DaemonHunter - Freeing up memory used by old Kotlin and Gradle Daemons (Kotlin)
README
# Daemon Hunter 🏹 😈
This repository contains a simple script that lets you kill gradle and kotlin daemons.
After updating gradle or kotlin or checking out older commits, often time you end up with multiple versions of gradle and the kotlin daemon running on your machine. These daemons consume a lot of RAM and slow down your system unnecessarily as you don't need them to be alive.
## Prerequisites
Install the [official Kotlin CLI](https://kotlinlang.org/docs/command-line.html).
## Usage
Execute the script: `./kill-daemons.main.kts`. Select the versions to kill.By default the prefill contains the outdated daemons. In the example, Kotlin `1.3.72` is older than Kotlin `1.4.10` and so is Gradle `6.6.1`.
Therefore, these daemons will be killed if you specify no input.
```console
[1] Kotlin 1.4.10
[2] Kotlin 1.3.72
[3] Gradle 6.7
[4] Gradle 6.6.1
Enter the numbers, separated by commas you want to kill [2,4]:
killed Kotlin 1.3.72
killed Gradle 6.6.1
```