監控AEM表單部署 monitoring-aem-forms-deployments

CAUTION
AEM 6.4已結束延伸支援,本檔案不再更新。 如需詳細資訊,請參閱 技術支援期. 尋找支援的版本 此處.

您可以從系統層級和內部層級監控AEM表單部署。 您可以使用HP OpenView、IBM Tivoli和CA UniCenter等專業管理工具,以及名為的第三方JMX監視器 JConsole 來特別監視Java活動。 實施監控策略可改善AEM表單部署的可用性、可靠性和效能。

如需監控AEM表單部署的詳細資訊,請參閱 監控AEM表單部署的技術指南.

使用MBean進行監視 monitoring-using-mbeans

AEM forms提供兩個已註冊的MBean,可提供導覽和統計資訊。 以下是唯一支援整合和檢查的MBean:

  • 服務統計: 此MBean提供有關服務名稱及其版本的資訊。
  • 操作統計: 此MBean提供每個表單伺服器服務的統計資訊。 這是管理員可取得特定服務相關資訊的位置,例如叫用時間、錯誤數等。

ServiceStatistationMbean公共介面 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是用於列出所有服務的名稱。

AdobeServiceName: 服務名稱或服務ID。

版本: 服務的版本。

操作統計資訊

調用時間: 執行方法所花費的時間。 這不包括請求序列化、從客戶端傳輸到伺服器以及反序列化的時間。

調用計數: 叫用服務的次數。

平均調用時間: 自伺服器啟動以來已執行的所有調用的平均時間。

最大調用時間: 自伺服器啟動以來已執行的最長調用的持續時間。

最小調用時間: 自伺服器啟動以來執行的最短調用的持續時間。

例外計數: 導致失敗的調用次數。

異常消息: 上次發生異常的錯誤消息。

上次取樣日期時間: 上次調用的日期。

時間單位: 預設值為毫秒。

要啟用JMX監視,應用程式伺服器通常需要一些配置。 如需詳細資訊,請參閱應用程式伺服器檔案。

如何設定開放式JMX存取的範例 examples-of-how-to-set-up-open-jmx-access

JBoss 4.0.3/4.2.0 — 配置JVM啟動

要從JConsole查看MBean,請配置JBoss應用程式伺服器的JVM啟動參數。 請確定JBoss是從run.bat/sh檔案啟動。

  1. 編輯位於InstallJBoss/bin下的run.bat檔案。

  2. 查找JAVA_OPTS行並添加以下內容:

    code language-as3
     -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啟動

  1. 編輯位於 下的startWebLogic.bat檔案 [WebLogic首頁]/user_projects/domains/Adobe_Live_Cycle/bin。

  2. 查找JAVA_OPTS行並添加以下內容:

    code language-as3
     -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9088 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
    
  3. 重新啟動WebLogic。

NOTE
對於WebLogic,可以使用遠程或IIOP訪問MBean。

遠程訪問MBean

  1. 啟動JConsole以建立新連接,然後按一下「遠程」頁簽。
  2. 輸入主機名和埠(9088,在JVM的啟動選項期間指定的號碼)。

Websphere 6.1 — 配置JVM啟動

  1. 在管理控制台(「應用程式伺服器」>「伺服器1」>「進程定義」>「JVM」)上,將以下行添加到「通用JVM參數」欄位中:

    code language-as3
     -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
    
  2. 在/opt/IBM/WebSphere/AppServer/java/jre/lib/management/management.properties檔案(或 <your websphere="" jre="">/ lib/management/management.properties):

    code language-as3
     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
    
  3. 重新啟動WebSphere。

recommendation-more-help
a6ebf046-2b8b-4543-bd46-42a0d77792da