我下载了JMeter v5.1.1并尝试运行它(双击“ jmeter.bat”),但是只有“命令提示符”窗口会短暂启动并自动关闭。之后什么也没发生 我确认我安装了Java,并显示以下输出
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
当我阅读其他线程时,我的Java版本或路径系统变量可能存在问题,所以在这里
%JAVA_HOME%\bin
%JAVA_HOME%\bin
C:\Program Files\Java\jdk1.8.0_181
我验证了Java路径正确并且包含java.exe文件。有什么帮助吗?也许有人有类似的问题
关于一个问题,我在这里粘贴了jmeter.log
2019-04-30 09:48:24,538 INFO o.a.j.u.JMeterUtils: Setting Locale to en_US
2019-04-30 09:48:24,584 INFO o.a.j.JMeter: Loading user properties from: user.properties
2019-04-30 09:48:24,585 INFO o.a.j.JMeter: Loading system properties from: system.properties
2019-04-30 09:48:24,598 INFO o.a.j.JMeter: Copyright (c) 1998-2019 The Apache Software Foundation
2019-04-30 09:48:24,598 INFO o.a.j.JMeter: Version 5.1.1 r1855137
2019-04-30 09:48:24,598 INFO o.a.j.JMeter: java.version=9
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: os.name=Windows 10
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: os.arch=amd64
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: os.version=10.0
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: file.encoding=Cp1252
2019-04-30 09:48:24,599 INFO o.a.j.JMeter: java.awt.headless=null
2019-04-30 09:48:24,600 INFO o.a.j.JMeter: Max memory =3185573888
2019-04-30 09:48:24,600 INFO o.a.j.JMeter: Available Processors =4
2019-04-30 09:48:24,615 INFO o.a.j.JMeter: Default Locale=English (United States)
2019-04-30 09:48:24,616 INFO o.a.j.JMeter: JMeter Locale=English (United States)
2019-04-30 09:48:24,616 INFO o.a.j.JMeter: JMeterHome=E:\JMeter\apache-jmeter-5.1.1
2019-04-30 09:48:24,616 INFO o.a.j.JMeter: user.dir =E:\JMeter\apache-jmeter-5.1.1\bin
2019-04-30 09:48:24,616 INFO o.a.j.JMeter: PWD =E:\JMeter\apache-jmeter-5.1.1\bin
2019-04-30 09:48:24,619 INFO o.a.j.JMeter: IP: *XXX.XXX.XXX.XXX* Name: *XXXXXXXXXX* FullName: *XXXXXXXXXX*
2019-04-30 09:48:25,583 INFO o.a.j.g.a.LookAndFeelCommand: Installing Darcula LAF
2019-04-30 09:48:25,591 INFO o.a.j.g.a.LookAndFeelCommand: Using look and feel: com.bulenkov.darcula.DarculaLaf [Darcula]
2019-04-30 09:48:25,592 INFO o.a.j.JMeter: Setting LAF to: com.bulenkov.darcula.DarculaLaf
2019-04-30 09:48:25,712 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2019-04-30 09:48:27,998 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-04-30 09:48:27,999 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-04-30 09:48:27,999 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-04-30 09:48:28,000 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2019-04-30 09:48:28,000 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2019-04-30 09:48:28,000 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2019-04-30 09:48:29,188 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool'
2019-04-30 09:48:29,189 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\JMeter\apache-jmeter-5.1.1\bin\proxyserver.jks
2019-04-30 09:48:29,490 INFO o.a.j.s.FileServer: Default base='E:\JMeter\apache-jmeter-5.1.1\bin'
2019-04-30 09:48:30,491 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2019-04-30 09:48:30,492 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2019-04-30 09:48:30,492 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2019-04-30 09:48:30,492 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
答案 0 :(得分:0)
无法解决,请尝试解决
我开始弄乱jmeter/bin
目录中的文件,发现双击ApacheJMeter.jar
而不是尝试使用jmeter.bat
会启动应用程序!
我不知道为什么以及发生了什么。我没有对系统进行任何更改,一切都与问题中所说的一样。应用程序启动并正常运行(在使用了1个工作日后,它没有崩溃,也没有基于教程发现任何不当行为)