Kotlin Toolchain / Amper¶
Daemonitor recognizes standalone Kotlin Toolchain / Amper CLI processes separately from Gradle's Kotlin compiler daemon.
Process identification¶
| Process type | Display label | Signature |
|---|---|---|
KOTLIN_TOOLCHAIN |
Kotlin Toolchain | org.jetbrains.amper.cli.MainKt |
KOTLIN_DAEMON |
Kotlin daemon | org.jetbrains.kotlin.daemon or KotlinCompileDaemon (Gradle Kotlin daemon) |
Both daemonitor-cored (cored/internal/poll/poll.go) and Kotlin core/ (GradleProcessClassifier.kt) apply this classification consistently.
Telemetry and presentation¶
- Runtime: Treated as a JVM process (
IsJVMProcessType("KOTLIN_TOOLCHAIN") == true). - JVM arguments: Parses
-Xmx,-Xms, and-XX:+Use*GC. - Live JVM metrics: Eligible for full JVM probing in
daemonitor-cored(jcmd,jstat,jinfo— heap, metaspace, GC, JIT, code cache, class loading, safepoints) and Attach/JMX live heap in the Kotlin fallback collector. - Desktop and TUI: Appears in the live process table with JVM columns and full Process Inspector / Details support.
- CLI: Included in
daemonitor-cli ps(and matched by--ecosystem gradlesince--ecosystem gradlecurrently filters all JVM build process types).
Project attribution and known limitations¶
- No project path extraction:
ProjectPathisnull; onlyWorkingDirectory(from OScwd) is populated. - Ephemeral lifetime:
KOTLIN_TOOLCHAINis a CLI process rather than a persistent daemon and does not act as a hierarchy root in Grouped view. - No build history or daemon logs: Amper build logs are not parsed into the
buildstable; usedaemonitor-cli observe -- ./amper buildif you want an observation session summary. - Scope: Recognition specifically targets
org.jetbrains.amper.cli.MainKt. Arbitrary standalonekotlincor Kotlin/Native compiler processes outside Gradle/Amper are not classified asKOTLIN_TOOLCHAIN.