AEM Forms 배포 모니터링 monitoring-aem-forms-deployments

시스템 수준과 내부 수준 모두에서 AEM Forms 배포를 모니터링할 수 있습니다. HP OpenView, IBM® Tivoli, CA UniCenter와 같은 전문 관리 도구와 JConsole 을 사용하여 Java™ 활동을 특별히 모니터링합니다. 모니터링 전략을 구현하면 AEM Forms 배포의 가용성, 안정성 및 성능이 향상됩니다.

MBean을 사용한 모니터링 monitoring-using-mbeans

AEM Forms은 탐색 및 통계 정보를 제공하는 두 개의 등록된 MBean을 제공합니다. 이러한 부분은 통합 및 검사를 위해 지원되는 유일한 MBean입니다.

  • 서비스 통계: 이 MBean은 서비스 이름 및 해당 버전에 대한 정보를 제공합니다.
  • OperationStatistic: 이 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의 속성이며 다음 계층 트리에서 탐색할 수 있습니다.

MB 트리

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-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 시작 구성

  1. 아래에 있는 startWebLogic.bat 파일을 편집합니다. [WebLogic home]/user_projects/domains/Adobe_Live_Cycle/bin.

  2. 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
    
  3. WebLogic을 다시 시작합니다.

NOTE
WebLogic의 경우 remote 또는 IIOP를 사용하여 MBean에 액세스할 수 있습니다.

원격으로 MBean 액세스

  1. 새 연결을 위해 JConsole을 실행하고 원격 탭을 클릭합니다.
  2. 호스트 이름과 포트(9088, JVM의 시작 옵션 중 지정한 번호)를 입력합니다.

WebSphere® 6.1 - JVM 시작 구성

  1. Admin Console(Application Server > server1 > 프로세스 정의 > JVM)에서 일반 JVM 인수의 필드에 다음 줄을 추가합니다.

    code language-shell
     -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-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
    
  3. WebSphere를 다시 시작합니다.

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2