This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-jbang-1 in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 0fb004d948207481eaef288400fbdc02d8661def Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Jan 20 18:34:03 2022 +0100 Kafka to Mongo: Added a camel-jbang section to the README --- profiling/kafka/kafka-mongo/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/profiling/kafka/kafka-mongo/README.md b/profiling/kafka/kafka-mongo/README.md index 1ca0860..05edec6 100644 --- a/profiling/kafka/kafka-mongo/README.md +++ b/profiling/kafka/kafka-mongo/README.md @@ -135,6 +135,18 @@ docker run --rm -ti \ In this case we are allocating 128 Mb Memory to the container and 0.25% cpus. +## Running this profiling example with Camel-Jbang + +You could also leveraging the camel-jbang module. From Camel 3.15.0 (still to be released) it will support the profiling feature. + +What you need to do is simply running this commands: + +```shell script +jbang -Dcamel.jbang.version=3.15.0-SNAPSHOT camel@apache/camel run --jfr-profile=profile data/sources/camel-jbang-route.yaml +``` + +You'll get at jfr recording file once the application will be stopped in your working directory. + ## HEAP Sizing In the pom you can also set a different Heap Size. The default is 64 Mb.