You can refer overview of Kafka here . For Installation and configuring Kafka , refer the previous post : Configuring Apache Kafka
Go to githup and download kafkameter
Follow the Steps for building the kafkameter.jar
Place the generated jar in $JMETER_HOME/lib/ext folder
Add Threadgroup->Samplers-> Javarequest
Configure Input parameters, like hostname , kafka topic that you created already
Run Jmeter test and verify the same message is consumed by Kafka consumer.
Refer the below screenshots
Sending message to Kafka Consumer
8 replies on “Load Testing Apache kafka using Kafkameter”
I have worked with this Jmeter jar file (KafkaProducer.Sampler). Using this I was able to publish the message to the Topic but now..
I am trying to find the Jmeter jar file (for KafkaConsumer), which will help me consume the message from the Topic.
Is there an existing jar available
I am not pretty sure about that it is available in jmeter. I searched for the same and ended up in developing our own.
According to step 7 above, how could I generate another class name to be appeared in the drop down for a Java Request ?
You have to extends AbstractJavaSamplerClient
Can anyone please send me the jar file of Kafka at firstname.lastname@example.org.
Is there a KafkaConsumer Jmeter jar file? I am able to send messages using “KafkaProducer.Sampler”. Please share the kafkaConsumer jar file.
I am not able to find Threadgroup->Samplers-> Javarequest in j meter 2.11 version
Its easy to use DI-Kafkameter
Please refere -> https://rollno748.medium.com/benchmarking-apache-kafka-using-di-kafkameter-8fa9ef6a7a84