From a8621f4962fb28f9067093a69b926f793b5dbecb Mon Sep 17 00:00:00 2001 From: ahamlat Date: Tue, 11 Jun 2024 16:57:26 +0200 Subject: [PATCH] Enable JFR continuous profiling with default setting (#7006) Enable JFR continuous profiling with default setting Signed-off-by: Ameziane H --- CHANGELOG.md | 2 ++ build.gradle | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 435ecea9e3..c3efddef70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ - `admin_nodeInfo` JSON/RPC call returns the currently active EVM version [#7127](https://github.com/hyperledger/besu/pull/7127) - Improve the selection of the most profitable built block [#7174](https://github.com/hyperledger/besu/pull/7174) - Support for eth_maxPriorityFeePerGas [#5658](https://github.com/hyperledger/besu/issues/5658) +- Enable continuous profiling with default setting [#7006](https://github.com/hyperledger/besu/pull/7006) + ### Bug fixes - Make `eth_gasPrice` aware of the base fee market [#7102](https://github.com/hyperledger/besu/pull/7102) - Validation errors ignored in accounts-allowlist and empty list [#7138](https://github.com/hyperledger/besu/issues/7138) diff --git a/build.gradle b/build.gradle index 4f34e67985..b26f36b519 100644 --- a/build.gradle +++ b/build.gradle @@ -634,7 +634,9 @@ startScripts { defaultJvmOpts = applicationDefaultJvmArgs + [ "-XX:G1ConcRefinementThreads=2", "-XX:G1HeapWastePercent=15", - "-XX:MaxGCPauseMillis=100" + "-XX:MaxGCPauseMillis=100", + "-XX:StartFlightRecording,dumponexit=true,settings=default.jfc", + "-Xlog:jfr*=off" ] unixStartScriptGenerator.template = resources.text.fromFile("${projectDir}/besu/src/main/scripts/unixStartScript.txt") windowsStartScriptGenerator.template = resources.text.fromFile("${projectDir}/besu/src/main/scripts/windowsStartScript.txt")