Skip to content

Bazel Java

Daemonitor classifies Java persistent workers and JVM test runners spawned by Bazel with build_system: BAZEL, runtime: JVM, and toolchain: JAVA.

Recognized Java processes

Process Process type Classification Matching signatures
Java persistent worker BAZEL_WORKER BAZEL / JVM / JAVA --persistent_worker with JavaBuilder_deploy.jar, VanillaJavaBuilder, or rules_java
JVM test runner BAZEL_TEST BAZEL / JVM / JAVA com.google.testing.junit.runner.BazelTestRunner or -Dbazel.test_suite=

Telemetry

  • OS metrics: Full OS accounting (RSS, CPU, threads, I/O, page faults, context switches, descriptors/handles).
  • JVM telemetry: Eligible for bounded live jcmd, jstat, and jinfo probing whenever runtime == JVM and the underlying executable is a JVM binary (java / javaw). Wrapper scripts such as test-setup.sh are classified as NATIVE and skipped by JVM probes.
  • UI presentation: Displayed as Java worker (or Bazel test) inside the Bazel section of Desktop and TUI.

CLI examples

# List Bazel processes including Java workers and JVM tests
daemonitor-cli ps --ecosystem bazel --details

# Export Bazel telemetry as JSON
daemonitor-cli ps --ecosystem bazel --json