簡體   English   中英

從 Jenkins 執行分布式負載測試時出現錯誤(InvalidClassException)

[英]Getting an error(InvalidClassException) while executing a distributed load test from Jenkins

Master 和 Slave 存在於 Linux 服務器上。 從 Jenkins 執行負載測試時出現如下所述的錯誤。當我從 Linux 服務器的 Master 執行時,相同的測試工作正常。

Starting remote engines
Starting the test @ Tue Oct 11 01:54:49 CDT 2022 (1665471289297)
Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.io.InvalidClassException: org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; local class incompatible: stream classdesc serialVersionUID = 242, local class serialVersionUID = 243
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445

PS:Jmeter版本,Java版本,跨所有服務器配置端口。

該錯誤意味着您在主從上有不同的 JMeter 版本, JMeter 無法正確執行序列化因此您收到錯誤

要絕對確保一切正常:

  1. 到處使用相同的Java版本
  2. 到處使用相同的JMeter版本,建議使用最新的
  3. 如果您使用任何JMeter 插件- 它們需要安裝在所有從站上。 同樣,插件版本必須完全相同
  4. 如果您使用任何外部數據(CSV 文件、用於上傳的文件、任何其他形式的測試數據)——在開始測試之前需要將其復制到所有從站

更多信息: 如何在JMeter中進行分布式測試

暫無
暫無

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

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