上一主题: 关于手工运行 ProbeBuilder下一主题: 使用 PBD Generator


为 z/OS 上的 WebSphere 配置 AutoProbe

适用于:z/OS 上的 WebSphere 6.1 和 7.0

您可以将 z/OS 安装上的 WebSphere 配置为使用 AutoProbe 检测应用程序。 有关 AutoProbe 的详细信息,请参阅 AutoProbe 和 ProbeBuilding 选项

注意:使用以下过程检测 z/OS 上的 WebSphere 7.0 不会提供与使用用于 z/OS 上的 WAS 7 的 JVM 1.5 AutoProbe 方法时一样详细的度量标准。 例如,不检测线程度量标准级别。

重要信息! 如果您正在使用 Java Agent 9.0 或更高版本监控 z/OS 上的 WebSphere 7.0,则应用程序服务器进程会反复重新启动。 要避免此问题,请升级到 WAS 7.0 内部版本级别 7.0.0.8 或更高版本。

请执行以下步骤:

  1. 在 WebSphere 中,启动管理员控制台。
  2. 选择“应用程序服务器”> <您的服务器> >“进程定义”。

    此时会列出“控项”和“从项”。

  3. 单击“从项”,然后单击 JavaVirtualMachine。
  4. 设置“常规 JVM 参数”字段,以指定类加载器插件以及 IntroscopeAgent.profile 文件的位置。 设置以下条目之一:
    com.wily.introscope.agentProfile
    

    com.wily.introscope.agentResource
    

    该参数具有以下值(在一个参数中设置若干个属性):

    -Dcom.ibm.websphere.classloader.plugin=com.wily.introscope.api.websphere.WASAutoProbe
    -Dcom.wily.introscope.agentProfile=<IntroscopeAgent.profile 的路径>
    

    -Dcom.ibm.websphere.classloader.plugin=com.wily.introscope.api.websphere.WASAutoProbe
    -Dcom.wily.introscope.agentResource=<包含 IntroscopeAgent.profile 的资源的路径>
    
  5. 将 Agent.jar 文件放在 <WebSphere 实例目录>/lib/ext 目录中。

    注意:不要将 Agent.jar 文件放在 WebSphere 安装目录中。

    下面显示了错误目录和正确目录的示例:

    错误:/usr/lpp/zWebSphere/V5R0M0/lib/ext
    正确:/WebSphere/V5R0M0/AppServer/lib/ext
    
  6. 确认在 ./wily 目录中新建的所有 CA Introscope® 文件和目录都可供 WebSphere 进程进行读取访问。
  7. 确认所有 *.log 文件都对 WebSphere 进程拥有写入访问权限。 Java 代理和 ProbeBuilder 将这些文件写入 ./wily 文件夹。 这些文件包括:
  8. 重新启动 WebSphere 应用程序服务器。
  9. 当 WebSphere 显示“open for e-business”时,请打开管理员控制台。

    度量标准将开始报告。

  10. 为使 AutoProbe 在已启用 Java2 安全性的 WebSphere 环境中正确运行,请向 Java2 安全策略中添加权限
  11. 通过配置 HTTP servlet 跟踪来收集 servlet 数据。

详细信息:

AutoProbe 和 ProbeBuilding 选项