目录
1、点击界面闪退
1.1、问题描述
1.2、解决方法
2、处理返回结果乱码问题
3、中文界面乱码
3.1、问题描述
3.2、解决方法
1、点击界面闪退
1.1、问题描述
Java运行环境
$ java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
运行GUI,点击界面会闪退
$ bash ./bin/jmeter.sh
================================================================================
Don't use GUI mode for load testing, only for Test creation and Test debugging !
For load testing, use NON GUI Mode:
jmeter -n -t [jmx file] -l [results file] -e -o [Path to output folder]
& adapt Java Heap to your test requirements:
Modify HEAP="-Xms512m -Xmx512m" in the JMeter batch file
================================================================================
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff7b62a69d, pid=95244, tid=0x0000000000000307
#
# JRE version: Java(TM) SE Runtime Environment (8.0_251-b08) (build 1.8.0_251-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.251-b08 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libobjc.A.dylib+0x669d] objc_msgSend+0x1d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/user/Desktop/apache-jmeter-3.3/hs_err_pid95244.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./bin/jmeter.sh: line 73: 95244 Abort trap: 6 java $JVM_ARGS $JMETER_OPTS -jar "$PRGDIR/ApacheJMeter.jar" "$@"
apache-jmeter版本
apache-jmeter-5.5 启动失败,闪退
apache-jmeter-5.4.1 启动失败,闪退
apache-jmeter-3.3 正常运行
1.2、解决方法
降低jmeter版本,或者升级JDK版本
https://archive.apache.org/dist/jmeter/binaries/
$ bash ./bin/jmeter.sh -v
_ ____ _ ____ _ _ _____ _ __ __ _____ _____ _____ ____
/ \ | _ \ / \ / ___| | | | ____| | | \/ | ____|_ _| ____| _ \
/ _ \ | |_) / _ \| | | |_| | _| _ | | |\/| | _| | | | _| | |_) |
/ ___ \| __/ ___ \ |___| _ | |___ | |_| | | | | |___ | | | |___| _ <
/_/ \_\_| /_/ \_\____|_| |_|_____| \___/|_| |_|_____| |_| |_____|_| \_\ 3.3 r1808647
Copyright (c) 1999-2017 The Apache Software Foundation
2、处理返回结果乱码问题
修改配置文件 ./bin/jmeter.properties
# language=en
language=zh_CN
#sampleresult.default.encoding=ISO-8859-1
sampleresult.default.encoding=UTF-8
重启jmeter
参考
解决Jmeter响应报文中文乱码的问题-3种解决办法
https://bz.apache.org/bugzilla//show_bug.cgi?id=55997&redirect=false#c1
3、中文界面乱码
3.1、问题描述
重新安装新的JDK后,发现中文界面乱码了
堂堂Apache顶级项目,都这么多问题,不得不吐槽一下了
3.2、解决方法
设置一外观,不使用暗黑模式即可
————————————————
版权声明:本文为CSDN博主「彭世瑜」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。