Skip to content
You are reading Hyperledger Besu development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Date of last update: August 19, 2022

Pass JVM options

To perform tasks such as attaching a debugger or configuring the garbage collector, pass JVM options to Hyperledger Besu.

Besu passes the contents of the BESU_OPTS environment variable to the JVM. Set standard JVM options in the BESU_OPTS variable.

For Bash-based executions, you can set the variable for only the scope of the program execution by setting it before starting Besu.

Example

BESU_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 \
besu --network=goerli