【问题标题】:"java(tm) binary has stopped working" error while running jmeter tests using ant via command prompt通过命令提示符使用 ant 运行 jmeter 测试时出现“java(tm) 二进制文件已停止工作”错误
【发布时间】:2017-04-05 08:44:16
【问题描述】:

我在尝试通过命令提示符使用 Ant 运行我的 jmeter 测试时遇到以下错误。

当我点击“查看问题详情”时,出现以下错误。

*Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: java.exe
  Application Version:  8.0.1210.13
  Application Timestamp:    584f5bdd
  Fault Module Name:    java.exe
  Fault Module Version: 8.0.1210.13
  Fault Module Timestamp:   584f5bdd
  Exception Code:   c0000005
  Exception Offset: 00009724
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:    3081
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
  C:\windows\system32\en-US\erofflps.txt*

有人可以帮忙吗?

【问题讨论】:

  • 命令提示错误信息:C:\apache-jmeter-3.1\apache-jmeter-3.1\extras>ant Buildfile: C:\apache-jmeter-3.1\apache-jmeter-3.1\extras\ build.xml 运行:enter code here [echo] funcMode = false [jmeter] 执行测试计划:C:\apache-jmeter-3.1\apache-jmeter-3.1\extras\T est.jmx ==> C:\apache- jmeter-3.1\apache-jmeter-3.1\extras\Test.jtl _message_xalan: xslt-report: BUILD FAILED C:\apache-jmeter-3.1\apache-jmeter-3.1\extras\build.xml:124: 输入文件 C: \apach e-jmeter-3.1\apache-jmeter-3.1\extras\Test.jtl 不存在

标签: performance jmeter automated-tests performance-testing build-automation


【解决方案1】:

正如我从您发布的关于问题的错误消息中看到的那样,这是一个错字...

这个:

C:\apach e-jmeter-3.1\apache-jmeter-3.1\extras\Test.jtl

需要:

C:\apache-jmeter-3.1\apache-jmeter-3.1\extras\Test.jtl

区别:

apache e-jmeter-3.1 >> apache-jmeter-3.1

【讨论】:

  • 对不起,伊万是的。谢谢你指出。这是由于从 CMD 复制错误消息并将其粘贴到记事本中。
  • 我仍然遇到同样的错误。您能提出任何解决方案吗?
【解决方案2】:

在管理员模式下运行命令窗口,这应该可以工作。

【讨论】:

  • 尝试以管理员身份运行命令提示符,但仍然出现相同的错误。
【解决方案3】:

在 build.xml 中的 <jmeter> 标签下添加 <jvmarg value="-Xmx1024m"/> 行就像 Charm :)

更多详情请参考:- Jmeter Java memory Issue

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-13
    相关资源
    最近更新 更多