시스템 수준과 내부 수준 모두에서 AEM 양식 배포를 모니터링할 수 있습니다. HP OpenView, IBM Tivoli, CA UniCenter와 같은 전문가 관리 도구와 JConsole이라는 타사 JMX 모니터를 사용하여 Java 활동을 특히 모니터링할 수 있습니다. 모니터링 전략을 구현하면 AEM 양식 배포의 가용성, 안정성 및 성능이 향상됩니다.
AEM 양식 배포 모니터링에 대한 자세한 내용은 AEM 양식 배포 모니터링에 대한 기술 안내서를 참조하십시오.
AEM 양식은 탐색 및 통계 정보를 제공하는 2개의 등록된 MBean을 제공합니다. 통합 및 검사를 위해 지원되는 유일한 MBean:
다음과 같은 ServiceStatistics 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)을 사용하여 작업 통계 MBean의 통계를 사용할 수 있습니다. 이러한 통계는 MBean의 특성이며 다음 계층 트리 아래에서 탐색할 수 있습니다.
MBean 트리
Adobe 도메인 이름:응용 프로그램 서버에 따라 다릅니다. 응용 프로그램 서버가 도메인을 정의하지 않으면 기본값은 adobe.com입니다.
ServiceType: AdobeService는 모든 서비스를 나열하는 데 사용되는 이름입니다.
AdobeServiceName: 서비스 이름 또는 서비스 ID.
버전: 서비스의 버전.
작업 통계
호출 시간: 메서드 실행에 걸리는 시간입니다. 이것은 요청을 직렬화하고 클라이언트에서 서버로 전송하며 역직렬화하는 시간을 포함하지 않습니다.
호출 수: 서비스를 호출한 횟수입니다.
평균 호출 시간: 서버가 시작된 이후 실행된 모든 호출의 평균 시간입니다.
최대 호출 시간: 서버가 시작된 이후 실행된 가장 긴 호출의 지속 시간입니다.
최소 호출 시간: 서버가 시작된 후 실행된 가장 짧은 호출의 지속 시간입니다.
예외 수: 실패로 연결된 호출의 수입니다.
예외 메시지: 마지막으로 발생한 예외의 오류 메시지입니다.
마지막 샘플링 날짜 시간: 마지막 호출 날짜입니다.
시간 단위: 기본값 은 밀리초 단위입니다.
JMX 모니터링을 활성화하려면 일반적으로 응용 프로그램 서버에 몇 가지 구성이 필요합니다. 자세한 내용은 응용 프로그램 서버 설명서를 참조하십시오.
JBoss 4.0.3/4.2.0 - JVM 시작 구성
JConsole의 MBean을 보려면 JBoss 응용 프로그램 서버의 JVM 시작 매개변수를 구성합니다. run.bat/sh 파일에서 JBoss가 시작되는지 확인합니다.
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 시작 구성
[WebLogic home]/user_projects/domains/Adobe_Live_Cycle/bin
아래에 있는 startWebLogic.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을 다시 시작합니다.
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를 다시 시작합니다.