You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/09/27 09:38:12 UTC
[camel-performance-tests] 02/06: Kafka-S3 Sample: Added Kafka async
profiler docs
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kafka-s3-fix
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 02a05b99870fc83fb996bc4d02a386f62107eeb1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 27 11:33:48 2021 +0200
Kafka-S3 Sample: Added Kafka async profiler docs
---
profiling/kafka-s3/README.md | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/profiling/kafka-s3/README.md b/profiling/kafka-s3/README.md
index 509080c..61d45a5 100644
--- a/profiling/kafka-s3/README.md
+++ b/profiling/kafka-s3/README.md
@@ -69,3 +69,29 @@ and check the status
docker exec -it <container_id> jcmd 1 JFR.check
```
+## Enabling Async Profiler while running application
+
+docker:
+```shell script
+docker run --rm -ti \
+ -v $PWD/data:/etc/camel:Z \
+ -v async_profiler_path:/work/async-profiler:Z \
+ -e CAMEL_K_CONF=/etc/camel/application.properties \
+ --network="host" \
+ quay.io/oscerd/kafka-s3:1.0-SNAPSHOT-jvm
+```
+
+Where async profiler path is the path of your async profiler on your host machine.
+
+Now you can start Async Profiler with the following command
+
+```
+docker exec -it <container_id> /work/async-profiler/profiler.sh -e alloc -d 30 -f /work/async-profiler/alloc_profile.html 1
+```
+
+This command while create an allocation flamegraph for the duration of 30 second of the running application.
+
+The privileged option for running the docker container is the fastest way to have perf events syscall enabled.
+
+If you don't want to use privileged approach, you can have a look at the basic configuration of async profiler (https://github.com/jvm-profiling-tools/async-profiler/wiki/Basic-Usage)
+