AEM forms のデプロイメントは、システムレベルと内部レベルの両方で監視できます。 HP OpenView、IBM Tivoli、CA UniCenter、および JMX と呼ばれるサード・パーティ製モニタなど、スペシャリスト管理ツールを使用できます。 JConsole を使用して、Java アクティビティを特別に監視します。 監視戦略を実装すると、AEM Forms デプロイメントの可用性、信頼性、パフォーマンスが向上します。
AEM forms のデプロイメントの監視について詳しくは、 AEM forms デプロイメントの監視に関するテクニカルガイド.
AEM forms には、ナビゲーションと統計の情報を提供する 2 つの登録済み 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.com です。
ServiceType: 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/domains_Live_Cycle/bin にAdobeします。
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(アプリケーションサーバー/server1/プロセス定義/JVM)で、Generic JVM Argument のフィールドに次の行を追加します。
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
/opt/IBM/WebSphere/AppServer/java/jre/lib/management/management.propertiesファイルに次の 3 行を追加するか、コメントを解除します ( または <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 を再起動します。