Skip to content

Daemonitor

Daemonitor is an open-source utility for inspecting build-related processes running on your machine. It provides visibility into operating system resource consumption and JVM behavior—including memory usage, CPU utilization, garbage collection, threads, class loading, and other process-level measurements—for Gradle, Bazel, Xcode, and Kotlin Toolchain / Amper through a Desktop application, an interactive Terminal UI, and a command-line interface.

Daemonitor collects process measurements through a shared local monitoring core (daemonitor-cored). Process samples and historical measurements are stored locally in SQLite (watcher.db).

Daemonitor Desktop Live Monitor showing Gradle, Bazel, Xcode, and Kotlin Toolchain processes with memory metrics and process details

Quick start

brew tap cdsap/tap
brew trust cdsap/tap  # Homebrew 7+
brew install daemonitor-cli
# Start the interactive process monitor (auto-starts daemonitor-cored)
daemonitor-cli

# Inspect running processes with OS and JVM details
daemonitor-cli ps --details

# Export a structured JSON snapshot
daemonitor-cli ps --json

Download installers for macOS (.dmg), Linux (.deb), or Windows (.msi) from GitHub Releases.

See Installation for all distribution options and Quick start for Desktop, TUI, and CLI walkthroughs.

Process monitoring and metrics

  • Live process monitoring: Inspect running build-related processes, their resource consumption, and runtime characteristics at regular polling intervals.
  • Process hierarchy: Understand parent-child relationships between daemons, servers, workers, compilers, and other related processes with PID-reuse protection and double-counting prevention.
  • JVM diagnostics: Inspect applicable JVM measurements, including heap usage, garbage collection, metaspace, memory pools, JIT compilation, code cache, class loading, and safepoints.
  • Operating system measurements: Inspect CPU utilization, RSS, physical footprint, threads, disk activity, page faults, context switches, and other supported OS measurements.
  • Process resource timelines: Inspect how memory and runtime resource consumption change over the lifetime of a process.
  • Multiple interfaces: Access process information through the Desktop application, interactive Terminal UI (TUI), and non-interactive CLI.

Supported processes

Process ecosystem Runtime Supported processes
Gradle JVM Daemons, wrappers, workers, test workers, and attributed Kotlin daemons
Bazel JVM Native Servers, Java and Kotlin persistent workers, native workers, and supported test processes
Xcode Native xcodebuild, build services (SWBBuildService/XCBBuildService), Swift/Clang compilers, and recognized build tools
Kotlin Toolchain / Amper JVM Kotlin Toolchain CLI (org.jetbrains.amper.cli.MainKt)

Metric availability depends on the operating system, process runtime, and permissions. See Supported processes and Platform compatibility.

Interfaces

  • Desktop application


    Live Monitor with process grouping, Process Inspector for OS and JVM diagnostics, runtime-specific metrics, and process resource timelines.

    Desktop guide →

  • Interactive Terminal UI (TUI)


    Native Bubble Tea monitor with process sections, parent hierarchy grouping, runtime-specific columns, process inspection, sorting, and safe process termination.

    Terminal UI guide →

  • Non-interactive CLI


    Process listing, detailed OS and JVM inspection, historical process samples, metric exports, and machine-readable output (plain, json, jsonl, csv).

    CLI guide →

Daemonitor Terminal UI showing Gradle, Bazel, Xcode, and Kotlin Toolchain processes with runtime-specific columns

Further documentation