1. 程式人生 > >JMeter使用中遇到的問題:Jmeter Debug - "Unrecognized VM option '+HeapDumpOnOutOfMemoryError"

JMeter使用中遇到的問題:Jmeter Debug - "Unrecognized VM option '+HeapDumpOnOutOfMemoryError"

啟動JMeter.bat的程式時,出現以下出錯資訊:

 

Unrecognized VM option '+HeapDumpOnOutOfMemoryError'

Could not create the Java virtual machine.

errorlevel=1

請按任意鍵繼續. . .

 

上網查了一下,可以用以下方法解決:

編輯jmeter.bat檔案,將set DUMP=-XX:+HeapDumpOnOutOfMemoryError註釋掉。

 

另外,還查了一下原因。

是因為機器用的是1.5的jdk環境,網上的大牛們說:

 

Well, this is an unexpected one. Apparently the HeapDumpOnOutOfMemoryError option was added in JDK 1.6, and then back-ported into 1.4.2_12, 1.5.0_07. We'll document this, and discuss what to do to fix it.

 

所以呢,還有一個方法是可以解決的,就是升級你的jdk環境到1.6,因些建議,在使用JMeter時,JDK的環境為1.6.

分類: JMeter

轉載:https://www.cnblogs.com/yangxia-test/p/3968738.html