提高 JVM 設定以最佳化 ClearQuest Web Server 效能

安裝或升級 ClearQuest Web Server 之後,請提高 JVM 設定,以改善效能並防止穩定性問題(例如記憶體不足錯誤)。

開始之前

此程序顯示執行 WebSphere 指令以提高 JVM 設定的方式。這些範例假設 ClearQuest Web Server 是部署於預設設定檔 cqwebprofile 中。如果您的 ClearQuest Web Server 是部署於不同名稱的設定檔中,請將 cqwebprofile 取代為您環境中所使用設定檔的名稱。

關於這項作業

此程序提供在 Windows 及 UNIX 或 Linux 系統上執行 WebSphere 指令的指示。

程序

若要提高 Windows 系統上的 JVM 設定,請執行下列動作:

  1. 開啟指令視窗或 Shell,然後移至 WebSphere Application Server bin 目錄。
    • Windows:
      wsadmin.bat -profile -profileName cqwebprofile "C:\Program Files\IBM\RationalSDLC\ClearQuest\cqweb\scripts\teamAdminUtils.jacl" -c "setJvmMaxHeapSize 1024"
    • UNIX 或 Linux:
      ./wsadmin.sh -profile -profileName cqwebprofile "/opt/ibm/RationalSDLC/clearquest/cqweb/scripts/teamAdminUtils.jacl" -c "setJvmMaxHeapSize 1024"
  2. 執行下列 WebSphere 指令,將 ClearQuest Web Server 所部署於的 WebSphere Application Server 設定檔的 JVM 資料堆大小設為 1024。
    • Windows:
      wsadmin.bat -profile -profileName cqwebprofile "C:\Program Files\IBM\RationalSDLC\ClearQuest\cqweb\scripts\teamAdminUtils.jacl" -c "setJvmMaxHeapSize 1024"
    • UNIX 或 Linux:
      ./wsadmin.sh -profile -profileName cqwebprofile "/opt/ibm/RationalSDLC/clearquest/cqweb/scripts/teamAdminUtils.jacl" -c "setJvmMaxHeapSize 1024"
  3. 重新啟動 WebSphere Application Server 設定檔,讓變更生效。
    • Windows:
      stopServer.bat server1 -profileName cqwebprofile
      startServer.bat server1 -profileName cqwebprofile
    • UNIX 或 Linux:
      ./stopServer.sh server1 -profileName cqwebprofile
      ./startServer.sh server1 -profileName cqwebprofile

意見反應