https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk
sudo apt-get install openjdk-8-jdk
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk
sudo apt-get install openjdk-8-jdk
cd /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home export PATH=${PATH}:$JAVA_HOME/bin export JMETER_HOME=/opt/homebrew/opt/jmeter/libexec
source ~/.zshrc
java -version
brew install mvn
git clone https://github.com/GSLabDev/pepper-box.git
mvn clean install -Djmeter.version=3.0 -Dkafka.version=0.9.0.1
brew install jmeter
cp ./pepper-box/target/pepper-box-1.0.jar $JMETER_HOME/lib/ext cp -R ./pepper-box/target/classes $JMETER_HOME/lib/ext
open /opt/homebrew/bin/jmeter
############# kafka producer set in jmeter ############
- use my default set: pepper_box.jmx
[default set is configured as below] 0) mac options > plugin manager > search kafka and add all related objects
- Java Request Thread group -> Add -> Sampler -> Java Request com.gslab.pepper.sampler.PepperBoxKafkaSampler bootstrap.servers: public ec2 ip: 32400, public ec2 ip: 32401 ... so on kafka.topic.name : topic name
2)Pepper-Box PlainText Config testplan -> Add -> Thread group -> Add -> Config Element -> Pepper-Box PlainText
ClassName:com.gslab.pepper.sampler.PepperBoxKafkaSampler Message Placeholder Key: MyMsg
{ "messageId":{{SEQUENCE("messageId", 1, 1)}}, "messageBody":"{{RANDOM_ALPHA_NUMERIC("abcedefghijklmnopqrwxyzABCDEFGHIJKLMNOPQRWXYZ", 100)}}", "messageCategory":"{{RANDOM_STRING("Finance", "Insurance", "Healthcare", "Shares")}}", "messageStatus":"{{RANDOM_STRING("Accepted","Pending","Processing","Rejected")}}", }
3)Pepper-Box Serialized Config
testplan-> Add -> Thread group -> Add -> Config Element -> Pepper-Box Serialized Config Message Placeholder Key: MyMsg ClassName: com.gslab.pepper.Message
java -cp pepper-box-1.0.jar com.gslab.pepper.PepperBoxLoadGenerator --schema-file --producer-config-file --throughput-per-producer --test-duration --num-producers
############# kafka consumer set in jmeter ############ 1)JSR223 Sampler-Kafka Consumer
brew install kafka
1)java 설치 2)jmeter 카프카 설정1 3)jmeter 카프카 설정2 4)jmeter 설치 5)jmeter-kafka template github