增加 JVM 设置以优化 ClearQuest Web 服务器性能

安装或升级 ClearQuest Web 服务器后,请增加 JVM 设置,以提高性能并避免出现诸如内存不足错误等稳定性问题。

开始之前

此过程显示如何运行 WebSphere 命令来增加 JVM 设置。这些示例假设 ClearQuest Web 服务器部署在缺省概要文件 cqwebprofile 中。 如果您的 ClearQuest Web 服务器部署在具有不同名称的概要文件中,请将 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 服务器部署到的 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

反馈