apache-jmeter:点击可视化界面闪退和中文乱码Failed to write core dump

简介: apache-jmeter:点击可视化界面闪退和中文乱码Failed to write core dump

目录

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


47e2dd3910f9a7529bacb72a710a34f5_0472b99f545e4cf39316e3e4a71e2b4f.png


参考


解决Jmeter响应报文中文乱码的问题-3种解决办法

https://bz.apache.org/bugzilla//show_bug.cgi?id=55997&redirect=false#c1

3、中文界面乱码

3.1、问题描述

重新安装新的JDK后,发现中文界面乱码了

b1158c2bc8bd621d95215e62e6510ea3_51ab938383d24169878df877ba5e5b10.png


堂堂Apache顶级项目,都这么多问题,不得不吐槽一下了


3.2、解决方法

设置一外观,不使用暗黑模式即可

ff85ab62ee60c55b8fc993b64ab50e50_814a26b28a8a4fe18277c6b82ac8af34.png

————————————————

版权声明:本文为CSDN博主「彭世瑜」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/mouday/article/details/130891243

相关文章
|
2月前
|
Java
SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed
SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed
21 0
|
2月前
|
Java
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
18 0
|
5月前
|
前端开发 JavaScript Java
IDEA Maven install Failed to execute goal org.apache.maven.plugins异常处理
IDEA Maven install Failed to execute goal org.apache.maven.plugins异常处理
88 0
|
1月前
org.apache.catalina.LifecycleException: Protocol handler start failed
org.apache.catalina.LifecycleException: Protocol handler start failed
15 0
|
2月前
|
消息中间件 Kafka
org.apache.kafka.common.KafkaException: Socket server failed to bind to 114.115.20.100:9092: Cannot
org.apache.kafka.common.KafkaException: Socket server failed to bind to 114.115.20.100:9092: Cannot
9 0
|
6月前
|
Java Maven
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
|
7月前
|
Java Apache Maven
【异常解决】Handler dispatch failed;nested exception is java.lang.NoClassDefFoundError: org/apache/common
【异常解决】Handler dispatch failed;nested exception is java.lang.NoClassDefFoundError: org/apache/common
1175 0
|
5月前
|
SQL 分布式计算 HIVE
[已解决]Job failed with org.apache.spark.SparkException: Job aborted due to stage failure: Task 3 in st
[已解决]Job failed with org.apache.spark.SparkException: Job aborted due to stage failure: Task 3 in st
89 0
|
5月前
|
SQL 分布式计算 资源调度
[已解决]FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. Unable to
[已解决]FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. Unable to
133 0
|
5月前
|
Python
【已解决】Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
【已解决】Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
68 0

推荐镜像

更多