您可以从系统级别和内部级别监控AEM表单部署。 您可以使用诸如HP OpenView、IBM Tivoli和CA UniCenter等专业管理工具,以及名为 JConsole 来专门监视Java活动。 实施监控策略可提高AEM表单部署的可用性、可靠性和性能。
有关监控AEM表单部署的更多信息,请参阅 用于监控AEM表单部署的技术指南.
AEM Forms提供两个注册的MBean,用于提供导航和统计信息。 以下是唯一支持集成和检查的MBean:
出于测试目的,可以访问ServiceStatistic MBean的以下公共接口:
public String getServiceId();
public int getMajorVersion();
public int getMinorVersion();
可以访问OperationStatistic MBean的以下公共接口以进行测试:
// InvocationCount: The number of times the method is invoked.
public long getInvocationCount();
// InvocationStartTime: The time at which the method started to execute.
public long getInvocationStartTime();
// InvocationEndTime: The time at which the method finished execution.
public long getInvocationEndTime();
// InvocationTime: The time taken for the execution of the method.
public long getInvocationTime();
// LastSamplingDateTime: Convert InvocationStartTime to a formatted string
public String getLastSamplingDateTime();
// MaxInvocationTime: The maximum time taken for the execution of the method.
public long getMaxInvocationTime();
// MinInvocationTime: The minimum time taken for the execution of the method.
public long getMinInvocationTime();
// AverageInvocationTime: the averege execution time taken for the execution of the method.
public double getAverageInvocationTime();
// ExceptionCount: The number of times the method has thrown an Exception.
public long getExceptionCount();
// ExceptionMessage: The message of the last exception occurred.
public String getExeptionMessage();
public void setExceptionMessage(String errorMessage);
使用JMX控制台(JConsole),可以获取OperationStatistic MBean中的统计信息。 这些统计信息是MBean的属性,可以在以下层次结构树下导航:
MBean树
Adobe域名: 取决于应用程序服务器。 如果应用程序服务器未定义域,则默认为adobe.com。
服务类型: AdobeService是用于列出所有服务的名称。
AdobeServiceName: 服务名称或服务ID。
版本: 服务的版本。
操作统计
调用时间: 执行方法所花费的时间。 这不包括序列化请求、从客户端传输到服务器并反序列化请求的时间。
调用计数: 调用服务的次数。
平均调用时间: 自服务器启动以来执行的所有调用的平均时间。
最大调用时间: 自服务器启动以来执行的最长调用的持续时间。
最小调用时间: 自服务器启动以来执行的最短调用的持续时间。
例外计数: 导致失败的调用次数。
异常消息: 上次出现异常的错误消息。
上次取样日期时间: 上次调用的日期。
时间单位: 默认值为毫秒。
要启用JMX监控,应用程序服务器通常需要一些配置。 有关具体信息,请参阅您的应用程序服务器文档。
JBoss 4.0.3/4.2.0 — 配置JVM启动
要从JConsole查看MBean,请配置JBoss应用程序服务器的JVM启动参数。 确保从run.bat/sh文件启动JBoss。
编辑位于InstallJBoss/bin下的run.bat文件。
找到JAVA_OPTS行并添加以下内容:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9088 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
WebLogic 9.2 /10 — 配置JVM启动
编辑位于下的startWebLogic.bat文件 [WebLogic主页]/user_projects/domains/Adobe_Live_Cycle/bin。
找到JAVA_OPTS行并添加以下内容:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9088 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
重新启动WebLogic。
对于WebLogic,您可以使用远程或IIOP访问MBean。
远程访问MBean
Websphere 6.1 — 配置JVM启动
在Admin Console(Application Server > server1 > Process Definition > JVM)中,将以下行添加到通用JVM参数的字段中:
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
在/opt/IBM/WebSphere/AppServer/java/jre/lib/management/management.properties文件(或 <your websphere="" jre="">/ lib/management/management.properties):
com.sun.management.jmxremote.port=9999 //any port you like, but make sure you use this port when you connect
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
重新启动WebSphere。