AEM Forms 배포 모니터링 monitoring-aem-forms-deployments
시스템 수준과 내부 수준 모두에서 AEM Forms 배포를 모니터링할 수 있습니다. HP OpenView, IBM® Tivoli, CA UniCenter와 같은 전문 관리 도구와 JConsole 이라는 서드파티 JMX 모니터를 사용하여 Java™ 활동을 구체적으로 모니터링할 수 있습니다. 모니터링 전략을 구현하면 AEM Forms 배포의 가용성, 안정성 및 성능이 향상됩니다.
MBean을 사용한 모니터링 monitoring-using-mbeans
AEM Forms는 탐색 및 통계 정보를 제공하는 두 개의 등록된 MBean을 제공합니다. 다음 항목은 통합 및 검사를 위해 지원되는 유일한 MBean입니다.
- ServiceStatistic: 이 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의 속성이며 다음과 같은 계층 트리에서 탐색할 수 있습니다.
MBean 트리
Adobe 도메인 이름: 애플리케이션 서버에 따라 다릅니다. 애플리케이션 서버가 도메인을 정의하지 않으면 기본값은 adobe.com입니다.
ServiceType: 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 Application Server의 JVM 시작 매개변수를 구성합니다. JBoss는 run.bat/sh 파일에서 시작되어야 합니다.
-
InstallJBoss/bin에 있는 run.bat 파일을 편집합니다.
-
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 시작 구성
-
[WebLogic home]/user_projects/domains/Adobe_Live_Cycle/bin에 있는 startWebLogic.bat 파일을 편집합니다. -
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을 다시 시작합니다.
MBean 원격 액세스
- 새로운 연결을 위해 JConsole을 실행하고 원격 탭을 클릭합니다.
- 호스트 이름과 포트(9088, JVM의 시작 옵션에서 지정하는 숫자)를 입력합니다.
WebSphere® 6.1 - JVM 시작 구성
-
Admin Console(애플리케이션 서버 > 서버1 > 프로세스 정의 > JVM)에서 다음 줄을 일반 JVM 인수 필드에 추가합니다.
code language-shell -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)에서 다음 세 줄을 추가하거나 주석 처리를 제거합니다.
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 -
WebSphere를 다시 시작합니다.