Skip to main content
Version: 2024.41.17

aspect info

Display runtime info about the bazel server

Synopsis

Displays information about the state of the bazel process in the form of several "key: value" pairs. This includes the locations of several output directories. Because some of the values are affected by the options passed to 'bazel build', the info command accepts the same set of options.

Documentation: https://bazel.build/docs/user-manual#info

If arguments are specified, each should be one of the keys (e.g. "bazel-bin"). In this case only the value(s) for those keys will be printed.

If --show_make_env is specified, the output includes the set of key/value pairs in the "Make" environment, accessible within BUILD files.

One or more of the following keys can be supplied as arguments, such as 'info bazel-bin'. When no arguments are given, most key/values are printed.

KeyDescription
bazel-binConfiguration dependent directory for binaries.
bazel-genfilesConfiguration dependent directory for generated files.
bazel-testlogsConfiguration dependent directory for logs from a test run.
build-languagePrint a binary-encoded protocol buffer with the build language structure.
character-encodingInformation about the character encoding used by the running JVM.
client-envThe specifications to freeze the current client environment. 1
command_logLocation of the log containing the output from the build commands.
committed-heap-sizeAmount of memory in bytes that is committed for the JVM to use.
default-package-pathThe default package path.
execution_rootA directory that makes all input and output files visible to the build.
gc-countNumber of garbage collection runs.
gc-timeThe approximate accumulated time spend on garbage collection.
install_baseThe installation base directory.
java-homeLocation of the current Java runtime.
java-runtimeName and version of the current Java runtime environment.
java-vmName and version of the current Java virtual machine.
max-heap-sizeMaximum amount of memory in bytes that can be used for memory management.
output_baseA directory for shared bazel state. 2
output_pathThe output directory.
package_pathThe search path for resolving package labels.
peak-heap-sizeThe peak amount of used memory in bytes after any call to System.gc().
releasebazel release identifier.
repository_cacheThe location of the repository download cache used.
server_logThe bazel server log path.
server_pidThe bazel process id.
starlark-semanticsThe effective set of Starlark semantics option values.
used-heap-sizeThe amount of used memory in bytes. 3
used-heap-size-after-gcThe amount of used memory in bytes after a call to System.gc().
workspaceThe working directory of the server.
aspect info [keys] [flags]

Options

  -h, --help   help for info

Options inherited from parent commands

      --aspect:config string   User-specified Aspect CLI config file. /dev/null indicates that all further --aspect:config flags will be ignored.
--aspect:interactive Interactive mode (e.g. prompts for user input)

SEE ALSO


  1. Note that this is not a good indicator of the actual memory use, as it includes any remaining inaccessible memory.
  2. As well as tool and strategy specific subdirectories.
  3. The output can be added to the project-specific rc file. See https://bazel.build/designs/2016/06/21/environment.html