修改$JMETER_HOME/bin/jmeter-server,增加jdk配置,要求1.8+
export JAVA_HOME=/home/work/lifuming/jdk1.8.0_51
2.报错 An error occurred: java.lang.NoSuchMethodError:org.apache.commons.cli.avalon.CLArgsParser.getArguments()Ljava/util/Vector;
NoClass found问题,一般是jar包冲突,需要删除冲突的jar包
jmeter添加测试计划后,保存为测试计划 4.启动jmeter时遇到 java.lang.OutOfMemoryError
jmeter内存不足时,linux系统修改 jmeter.sh,win系统修改jmeter.bat
linux系统->jmeter.sh中最后一行增加如下配置:
java $JVM_ARGS -Xms1024m -Xmx2096m -XX:MaxpermSize=1024m
win系统修改jmeter.bat
if not defined HEAP (
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
set HEAP=-Xms512m -Xmx4000m
set NEW=-XX:NewSize=256m -XX:MaxNewSize=1024m
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)