您可以從系統層級和內部層級監控AEM Forms部署。 您可以使用HP OpenView、IBM®Tivoli和CA UniCenter等專業管理工具,以及名為的協力廠商JMX顯示器 JConsole 以專門監視Java™活動。 監控策略的實作可改善AEM Forms部署的可用性、可靠性和效能。
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是用於列出所有服務的名稱。
Adobe服務名稱: 服務名稱或服務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 home]/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,您可以使用remote或IIOP存取MBean。
從遠端存取MBean
WebSphere® 6.1 — 設定JVM啟動
在Admin Console(「應用程式伺服器」>「server1」>「程式定義」>「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。