标签:div java_home apache java sources 获取 repo apach source
(1)基于idea,写个java请求工程:参考上一篇
(2)在jmeter编写java请求脚本,主要是进行参数化,并修改读取参数的地址
(3)上传到压力机jmeter、java请求脚本、工程jar包、参数获取文件
(4)执行指令:
export JVM_ARGS="-Xms1024m -Xmx1024m" && export JAVA_HOME="/app/logs/jdk1.8.0_181" && export JMETER_HOME="/app/logs/Openinterface/apache-jmeter-3.4"&& nohup /app/logs/Openinterface/apache-jmeter-3.4/bin/jmeter -n -t /app/logs/Openinterface/apache-jmeter-3.4/my-resources/xxx.jmx -l /app/logs/Openinterface/apache-jmeter-3.4/my-resources/results/report.jtl -e -o /app/logs/Openinterface/apache-jmeter-3.4/my-resources/results/report > mynohup.out &
(5)查看生成的报告
标签:div java_home apache java sources 获取 repo apach source
原文地址:https://www.cnblogs.com/cjd1005/p/13161927.html