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

相关文章
|
6月前
|
Java
SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed
SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed
98 0
|
3月前
|
Java Maven Spring
SpringBoot 系列之 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
这篇文章描述了在使用Maven构建Spring Boot项目时遇到的`maven-resources-plugin`插件版本问题导致的编译失败,并提供了通过修改插件版本至3.1.0来解决这个问题的方法。
SpringBoot 系列之 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
|
6月前
|
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
84 0
|
4月前
|
Java 数据库连接 mybatis
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid
|
6月前
|
前端开发 JavaScript Java
IDEA Maven install Failed to execute goal org.apache.maven.plugins异常处理
IDEA Maven install Failed to execute goal org.apache.maven.plugins异常处理
482 0
|
6月前
|
SQL 分布式计算 Hadoop
org.apache.hadoop.security.AccessControlException Permission denied: user=anonymous, access=WRITE...
在尝试通过 HiveServer2 远程执行 DDL 操作时遇到权限错误,错误信息显示匿名用户(`anonymous`)无权执行写操作。解决方案包括:1) 使用 `hdfs dfs -chmod -R +777 /warehouse` 给目录授权(不推荐,仅适用于测试环境);2) 配置 Hive 和 Hadoop,创建具有权限的用户,如 `ad`,并将该用户添加到 Hive 的管理员角色和 Hadoop 的 proxyuser 配置中,然后重启相关服务。通过 `beeline` 测试连接和操作,确认权限问题已解决。
296 0
|
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
|
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
3703 0
|
6月前
org.apache.catalina.LifecycleException: Protocol handler start failed
org.apache.catalina.LifecycleException: Protocol handler start failed
72 0
|
6月前
|
消息中间件 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
73 0

推荐镜像

更多