Skip to content

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 gradle since --ecosystem gradle currently filters all JVM build process types).

Project attribution and known limitations

  • No project path extraction: ProjectPath is null; only WorkingDirectory (from OS cwd) is populated.
  • Ephemeral lifetime: KOTLIN_TOOLCHAIN is 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 builds table; use daemonitor-cli observe -- ./amper build if you want an observation session summary.
  • Scope: Recognition specifically targets org.jetbrains.amper.cli.MainKt. Arbitrary standalone kotlinc or Kotlin/Native compiler processes outside Gradle/Amper are not classified as KOTLIN_TOOLCHAIN.