您可以從系統層級和內部層級監控AEM表單部署。 您可以使用HP OpenView、IBM Tivoli和CA UniCenter等專業管理工具,以及名為的第三方JMX監視器 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啟動參數。 請確定JBoss是從run.bat/sh檔案啟動。
編輯位於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啟動
在管理控制台(「應用程式伺服器」>「伺服器1」>「進程定義」>「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。