Redhat

RHEL4 上的 JMeter

  • September 2, 2011

下載 JMeter 進行一些測試,但嘗試執行它我得到以下錯誤

[oracle@ripple jakarta-jmeter-2.5]$ bin/jmeter
Warning: -server not understood. Ignoring.
Warning: -XX:+HeapDumpOnOutOfMemoryError not understood. Ignoring.
Warning: -Xms512m not understood. Ignoring.
Warning: -Xmx512m not understood. Ignoring.
Warning: -XX:NewSize=128m not understood. Ignoring.
Warning: -XX:MaxNewSize=128m not understood. Ignoring.
Warning: -XX:MaxTenuringThreshold=2 not understood. Ignoring.
Warning: -XX:PermSize=64m not understood. Ignoring.
Warning: -XX:MaxPermSize=64m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: bin.ApacheJMeter.jar
  at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
  at _Jv_ThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
  at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
  at __gcj_personality_v0 (/home/oracle/jakarta-jmeter-2.5/java.version=1.4.2)
  at __libc_start_main (/lib64/tls/libc-2.3.4.so)
  at _Jv_RegisterClasses (/home/oracle/jakarta-jmeter-2.5/java.version=1.4.2)

Java 已安裝且正常執行(此伺服器執行 Oracle IAS 伺服器)。如何讓 JMeter 工作?

執行 RHEL 4 update 5,Java 版本為 1.4.2

您應該從 Oracle 站點下載並安裝 Java 1.6 SDK。如您所見,Java 的 GNU 實現(GNU GCJ)無法處理啟動參數。

引用自:https://serverfault.com/questions/307513