簡體   English   中英

Jmeter:如何修復java.io.NotSerializableException:Jmeter中的org.apache.jmeter.JMeter $ ListenToTest

[英]Jmeter: How to fix java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest in Jmeter

我正在使用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

似乎您正在使用尚不支持的JDK8。

2.12版將支持Java 8。

建議您安裝最新版本的Java 7,然后重試。

當另一個(但相同)JMeter實例在Master上運行時,出現了此錯誤。 終止此“舊”實例可以解決此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM