This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit ffc73764d4641f605469338edaeb3e6054f878ee Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Sep 9 15:25:28 2021 +0200 Added burst script with kafkacat to be able to push event to kafka while testing and so profiling --- profiling/kafka-minio/pom.xml | 2 +- profiling/kafka-minio/script/burst.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/profiling/kafka-minio/pom.xml b/profiling/kafka-minio/pom.xml index 30956ee..3cd9d03 100644 --- a/profiling/kafka-minio/pom.xml +++ b/profiling/kafka-minio/pom.xml @@ -147,7 +147,7 @@ </activation> <properties> <quarkus.jib.base-jvm-image>adoptopenjdk/openjdk11:ubi-minimal</quarkus.jib.base-jvm-image> - <quarkus.jib.jvm-entrypoint>java,-XX:+UseShenandoahGC,-Xlog:gc,-jar,/work/quarkus-run.jar</quarkus.jib.jvm-entrypoint> + <quarkus.jib.jvm-entrypoint>java,-XX:+UseShenandoahGC,-Xlog:gc,-Xmx64m,-jar,/work/quarkus-run.jar</quarkus.jib.jvm-entrypoint> <quarkus.container-image.tag>${project.version}-jvm</quarkus.container-image.tag> </properties> </profile> diff --git a/profiling/kafka-minio/script/burst.sh b/profiling/kafka-minio/script/burst.sh new file mode 100755 index 0000000..bd0a3f8 --- /dev/null +++ b/profiling/kafka-minio/script/burst.sh @@ -0,0 +1,5 @@ +#!/bin/bash +for i in {1..10000} +do + echo "payload" | $KAFKACAT_PATH -b localhost:9092 -t testtopic -H "file=$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1)" +done
