Sun Java Enterprise System 5 监视指南

Procedure在 Application Server 中启用监视功能

  1. 编辑文件 /var/AppServer-base/domains/domain1/config/domain.xml,并将所有 module-monitoring-level 设置从 OFF 更改为 HIGH。或者:

    1. 登录到位于 https:// hostname:4849 的 Application Server 管理控制台

    2. 选择“配置”,然后选择“server-config (管理配置)”

    3. 将“监视”值设置为 HIGH

    4. 将所有其他值都设置为 HIGH

  2. 使用以下命令重新启动 Application Server:


    cd AppServer-base/appserv/bin
    asadmin stop-domain domain1
    asadmin start-domain user myUser domain1

    出现提示后,输入 myUser 的密码。

  3. 如果使用 Application Server 对 Portal Server 实例进行了部署和监视,重新启动 Application Server 将会影响 Portal Server 监视。要使 Portal Server 实例显示在 Monitoring Console 中,必须在浏览器中访问门户页面。例如,加载页面 http://portalserv.example.com:8080/portal 以便允许监视 portalserv.example.com

故障排除

由于受到限制,当 Application Server 崩溃或关闭时,将从 Monitoring Framework 中删除 Application Server 的受监视对象。如果出现这种情况,Application Server 将从 Monitoring Console 中消失,从而无法再受到监视。