【问题标题】:Jmeter: How to fix java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest in JmeterJmeter:如何在 Jmeter 中修复 java.io.NotSerializableException:org.apache.jmeter.JMeter$ListenToTest
【发布时间】:2014-09-02 07:40:39
【问题描述】:

我正在使用Jmeter 进行分布式测试。 我刚刚在 JMeter lib 文件夹中添加了一些用于性能监控的库,但我没有在测试计划中使用它们。我正在使用 JMeter 2.11 当我使用 GUI 模式运行所有从属设备时,它工作正常,但是当我在 Non-Gui mode 中运行 Jmeter 进行分布式测试时,会出现以下错误:

:\JMETER\apache-jmeter-2.11\bin>jmeter -n -t C:\JMETER\MyTest\PROJECTS\VTWebsite\VTWebsiteLoadTest.jmx  -R 192.168.16.20,192.168.16.60,192.168.16.36,
192.168.16.43 -l C:\JMETER\MyTest\scriptresults.xml
Java HotSpot(TM) Client VM warning: ignoring option PermSize=64m; support was removed in 8.0
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Creating summariser <summary>
Created the tree successfully using C:\JMETER\MyTest\PROJECTS\VTWebsite\VTWebsiteLoadTest.jmx
Configuring remote engine for 192.168.16.20
Using remote object: UnicastRef [liveRef: [endpoint:[192.168.16.20:52964](remote),objID:[56a2dc3:14834aeb7c8:-7fff, -626516943481154007]]]
Configuring remote engine for 192.168.16.60
Using remote object: UnicastRef [liveRef: [endpoint:[192.168.16.60:30000](remote),objID:[ab46ff4:14834bcd76c:-7fff, 5068970606656314471]]]
Configuring remote engine for 192.168.16.36
Using remote object: UnicastRef [liveRef: [endpoint:[192.168.16.36:40419](remote),objID:[340a5477:14834aaa2a2:-7fff, -1824599565201262756]]]
Configuring remote engine for 192.168.16.43
Using remote object: UnicastRef [liveRef: [endpoint:[192.168.16.43:16035](remote),objID:[5e920c9d:14834ec4eac:-7fff, 3726006617068851172]]]
Starting remote engines
Starting the test @ Tue Sep 02 11:50:51 IST 2014 (1409638851668)
Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.MarshalException: error marshalling argume
nts; nested exception is:
        java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest

【问题讨论】:

    标签: jmeter distributed


    【解决方案1】:

    您使用的似乎是尚未支持的 JDK8。

    2.12 版将支持 Java 8。

    我建议您安装最新版本的 Java 7 并重试。

    【讨论】:

    • 我刚刚在 JMeter lib 文件夹中添加了一些用于性能监控的库,但我没有在测试计划中使用它们。我正在使用 JMeter 2.11
    • 我使用的是 Jmeter 2.13,从命令行远程运行时仍然遇到同样的异常。我必须安装 JRE 1.7。这是正确的答案。
    【解决方案2】:

    当另一个(但相同的)JMeter 实例在 Master 上运行时,我遇到了这个错误。终止这个“旧”实例解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-24
      • 1970-01-01
      • 2021-12-16
      • 2016-08-29
      • 1970-01-01
      • 2016-03-22
      相关资源
      最近更新 更多