监控AEM forms部署 monitoring-aem-forms-deployments
您可以从系统级别和内部级别监控AEM Forms部署。 您可以使用专业管理工具,如HP OpenView、IBM®Tivoli和CA UniCenter,以及名为的第三方JMX监视器 JConsole 专门监控Java™活动。 实施监控策略可提高AEM Forms部署的可用性、可靠性和性能。
使用MBean进行监视 monitoring-using-mbeans
AEM Forms提供两个注册的MBean,用于提供导航和统计信息。 这些部件是唯一支持集成和检查的MBean:
- 服务统计信息: 此MBean提供有关服务名及其版本的信息。
- 操作统计信息: 此MBean提供每个AEM Forms服务器服务的统计信息。 在此MBean中,管理员可以获取有关特定服务的信息,如调用时间和错误数。
ServiceStatisticMbean公共接口 servicestatisticmbean-public-interfaces
可以访问ServiceStatistic MBean的这些公共接口进行测试:
public String getServiceId();
public int getMajorVersion();
public int getMinorVersion();
OperationStatisticMbean公共接口 operationstatisticmbean-public-interfaces
可以访问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);
MBean树和操作统计数据 mbean-tree-operation-statistics
使用JMX控制台(JConsole),可以使用OperationStatistic MBean中的统计信息。 这些统计信息是MBean的属性,可以在以下层次结构树下导航:
MBean树
Adobe域名: 取决于应用程序服务器。 如果应用程序服务器未定义域,则缺省值为adobe.com。
服务类型: AdobeService是用于列出所有服务的名称。
Adobe服务名称: 服务名称或服务ID。
版本: 服务的版本。
操作统计信息
调用时间: 执行方法所用的时间。 此调用不包括序列化请求、从客户端传输到服务器以及反序列化请求的时间。
调用计数: 调用服务的次数。
平均调用时间: 自服务器启动以来执行的所有调用的平均时间。
最长调用时间: 自服务器启动以来执行的最长调用的持续时间。
最小调用时间: 自服务器启动以来执行的最短调用的持续时间。
例外计数: 导致失败的调用数。
异常消息: 发生的上一个异常的错误消息。
上次取样日期时间: 上次调用的日期。
时间单位: 缺省值为毫秒。
要启用JMX监视,应用程序服务器通常需要一些配置。 有关详细信息,请参阅应用程序服务器文档。
有关如何设置开放JMX访问的示例 examples-of-how-to-set-up-open-jmx-access
JBoss® 4.0.3/4.2.0 — 配置JVM启动
要从JConsole查看MBean,请配置JBoss应用程序服务器的JVM启动参数。 确保从run.bat/sh文件启动JBoss。
-
编辑位于InstallJBoss/bin下的run.bat文件。
-
找到JAVA_OPTS行并添加以下内容:
code language-shell -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 home]/user_projects/domains/Adobe_Live_Cycle/bin
. -
找到JAVA_OPTS行并添加以下内容:
code language-shell -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9088 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
-
重新启动WebLogic。
远程访问MBean
- 启动JConsole以建立新连接,然后单击远程选项卡。
- 输入主机名和端口(9088,即JVM启动选项期间指定的编号)。
WebSphere® 6.1 — 配置JVM启动
-
在Admin Console(Application server > server1 > Process Definition > JVM)上,将以下行添加到通用JVM参数的字段中:
code language-shell -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):
code language-shell 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。