Transcript
Page 1: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Page 2: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company © 2011 GTPlus. All Rights Reserved. www.gtplus.co.kr

Global Technology Fusion Middleware

Coherence Monitoring

지티플러스 이형승

Page 3: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

1. 주제 선정 사유

2. 모니터링 개요

3. 모니터링 설정

4. 실시간 모니터링 및 모니터링 항목

5. JMX Reporting 방법

6. 요약

7. 레퍼런스

Agenda

Page 3 © 2011 GTPlus. All Rights Reserved.

Page 4: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

손쉬운 확장이 가능한 Grid 솔루션 Coherence 을 어떤 형태로 모니터링하며, 확장된 노드를 쉽게 모니터링 할 수 있는 방법을 내장하고 있는지 확인이 필요합니다. 또한, 미들웨어 모니터링을 하면서 아쉬웠던 모니터링 정보를 File 로 남기는 기능을 내장하고 있는지 확인하는 시간을 가져보고자 합니다.

1. 주제 선정 이유

© 2011 GTPlus. All Rights Reserved. Page 4

Coherence Monitoring

1. Grid 솔루션으로 Scale-up, Scale-out 으로 추가된 Coherence Node 를 어떻게 손쉽게 모니터링 할 것인가?

2. 수많은 Coherence Node 를 어떤 식으로 모니터링 할 것 인가?

3. Monitoring 정보를 File 로 남기는 기능을 가지고 있는가?

Page 5: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence 는 Coherence Cluster 를 관리하기 위한 JMX framework 를 제공하며, 하나의 MBean Server 로 부터 Cluster 멤버 모두를 모니터링 할 수 있습니다. 또한 모니터링 정보를 File 로 남길 수 있는 기능도 함께 제공합니다.

2. 모니터링 개요

© 2011 GTPlus. All Rights Reserved. Page 5

Coherence Monitoring

1. JMX 기술 사용

2. JMX 1.0 이상이 요구됨

• Pre-Java SE 5.0 JVM에서 실행되는 applications 은 JMX lib 를 classpath 에 add 해야 함.

http://java.sun.com/products/JavaManagement/download.html

JMX 1.X.X Reference Implementation 를 다운 받으면 됨

3. 하나의 Coherence 노드를 통해서 전체 Coherence Node 모니터링

• Coherence Enterprise Edition 이상 버전에서만 한 멤버를 통해 전체를 모니터링 할 수 있음.

Coherence Standard Edition 에서는 불가

4. 모니터링 값을 파일로 남길 수 있는 기능 제공

• Reporter 라는 기능을 이용하여, 특정 시점 혹은 정기적인 Reporting 가능

Page 6: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 또는 웹 브라우저를 통해서 Coherence 를 모니터링 하기 위해서는 모니터링 대상 Coherence Node 에 JMX Framework을 enable 시켜주어야 합니다. 이러한 방법으로는 Coherence 설정 파일 수정, System Property 수정, 시작 스크립트 인수 추가 방식을 제공합니다.

3.1 모니터링 설정 – 모니터링 대상 JMX 설정 방식

© 2011 GTPlus. All Rights Reserved. Page 6

Coherence Monitoring

1. JMX management enable 설정

• Coherence Operational Configuration deployment descriptor 수정

tangosol-coherence.xml(coherence.jar)에서 management-config element 를 수정

• Java system property 설정

• coherence.cmd(sh), cache-server.cmd(sh) 실행시 -jmx 인수 사용 (3.7.X 부터 추가됨)

Page 7: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

System Property 옵션을 설정하여, 하나의 MBean Server 로 부터 Cluster 멤버 모두를 모니터링 할 수 있습니다.

3.2 모니터링 설정 – System Property로 모니터링 대상 JMX 설정

© 2011 GTPlus. All Rights Reserved. Page 7

Coherence Monitoring

1. Managing Node 및 Managed Node 설정

• On the “managing(MBeanServer Host)” node :

MBeanServer 로 운영될 필요가 없는 Node 들까지 “all” 로 설정하는 것은 3~5%의 자원을 사용하게 되고, Cluster 에 join 하는 시간을 증가시킴

Coherence Node 중에 한 두 Node에 설정할 것을 권고

• On the “managed” node :

WebLogic Server 는 일반적으로 managed node로 설정

WebLogic Server 에 WebApp 를 디플로이하고, jsp 등으로 모니터링을 하고자 하는 경우 managing node 로 설정

-Dtangosol.coherence.management=all

-Dtangosol.coherence.management.remote=true

Page 8: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

모니터링 대상 Coherence Node 를 모니터링 하기 위한 JMX Client 와 웹 브라우저 등으로 모니터링을 하기 위한 설정 방법으로 Coherence 설정 파일 수정, System Property 수정, 시작 스크립트 옵션 추가 방식을 제공합니다.

4.1 실시간 모니터링 - MBean Server 접속 방법

© 2011 GTPlus. All Rights Reserved. Page 8

Coherence Monitoring

1. JMX API

• HTTPAdpater (Coherence 내장)

• JConsole / ( j)VisualVM - 권장

• Custom JSP Page : MBean 을 모니터링 할 수 있는 JSP

2. JMX Remote API using RMI or HTTP

• Coherence MBeanConnector (Coherence 내장)

Page 9: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

HTTPAdapter 는 WAS 를 사용하지 않는 구성에서 Web 을 통해 모니터링 하고자 할 때 사용할 수 있는 방법입니다. 일시적으로 웹 브라우저를 통해서 모니터링 하고자 할 때 손쉽게 사용할 수 있습니다.

4.2 실시간 모니터링 - MBean Server 접속 방법 : HTTPAdapter

© 2011 GTPlus. All Rights Reserved. Page 9

Coherence Monitoring

1. HTTPAdpater

• Pre-Java SE 5.0 JVM 에서 실행중인 MBean에 Aceess 하기 위한 방법

• jmxri.jar, jmxtools.jar 를 classpath에 잡는다.

• 다음과 같은 설정으로 coherence.cmd (sh) 파일을 실행한다.

• jmx 8082 입력 후

java -cp jmxri.jar;jmxtools.jar;coherence.jar -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true com.tangosol.net.CacheFactory

Map (?): jmx 8082 Installed: HttpAdapter:port=8082

Page 10: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

웹 브라우저를 통해 HTTPAdapter 에 접속하여, 다양한 MBean 속성들에 대해서 모니터링 가능합니다. 또한 일부 항목에 대해서 MBean 값을 변경할 수 있습니다.

4.2 실시간 모니터링 - MBean Server 접속 방법 : HTTPAdapter

© 2011 GTPlus. All Rights Reserved. Page 10

Coherence Monitoring

1. HTTPAdpater – http://ip:port

Page 11: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 JConsole 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다. 또한 일부 항목에 대해서 MBean 값을 변경할 수 있습니다.

4.3 실시간 모니터링 - MBean Server 접속 방법 : JConsole

© 2011 GTPlus. All Rights Reserved. Page 11

Coherence Monitoring

1. JConsole

• Java SE 5.0 JVM 이상에서 실행중인 MBeanServer에 Aceess 하기 위한 툴

• JConsole 로 접근해서 모니터링 하기 위해 Coherence node 에 추가되어야 할 옵션

• JConsole 로 Remote 로 접근해서 모니터링 하기 위해 Coherence node 에 추가되어야 할 옵션

-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all –Dtangosol.coherence.management.remote=true

-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=40011

Page 12: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 JConsole 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다.

4.3 실시간 모니터링 - MBean Server 접속 방법 : JConsole

© 2011 GTPlus. All Rights Reserved. Page 12

Coherence Monitoring

1. JConsole - local

Java_home\bin\jconsole 실행

Page 13: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 JConsole 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다.

4.3 실시간 모니터링 - MBean Server 접속 방법 : JConsole

© 2011 GTPlus. All Rights Reserved. Page 13

Coherence Monitoring

1. JConsole – remote (service:jmx:rmi://ip:port/jndi/rmi://ip:port/server)

Java_home\bin\jconsole 실행

Page 14: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 JConsole 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다.

4.3 실시간 모니터링 - MBean Server 접속 방법 : JConsole

© 2011 GTPlus. All Rights Reserved. Page 14

Coherence Monitoring

1. JConsole – remote (ip:port)

Java_home\bin\jconsole 실행

Page 15: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 ( j)VisualVM 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다. 또한 일부 항목에 대해서 MBean 값을 변경할 수 있습니다.

4.4 실시간 모니터링 - MBean Server 접속 방법 : ( j)VisualVM

© 2011 GTPlus. All Rights Reserved. Page 15

Coherence Monitoring

1. ( j)VisualVM

• Java SE 5.0 JVM 이상에서 실행중인 MBeanServer에 Aceess 하기 위한 툴

• ( j)VisualVM 로 접근해서 모니터링 하기 위해 Coherence node 에 추가되어야 할 옵션

-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all –Dtangosol.coherence.management.remote=true

Page 16: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 ( j)VisualVM 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다.

4.4 실시간 모니터링 - MBean Server 접속 방법 : ( j)VisualVM

© 2011 GTPlus. All Rights Reserved. Page 16

Coherence Monitoring

1. ( j)VisualVM - local

Java_home\bin\jvisualvm 실행

Page 17: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JDK 에서 제공되는 ( j)VisualVM 을 통해 Coherence 의 다양한 MBean 속성들에 대해서 모니터링 가능합니다.

4.4 실시간 모니터링 - MBean Server 접속 방법 : ( j)VisualVM

© 2011 GTPlus. All Rights Reserved. Page 17

Coherence Monitoring

1. ( j)VisualVM – remote (ip:port)

Java_home\bin\jvisualvm 실행

Page 18: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

미들웨어를 사용 중인 고객들은 JMX API 를 이용하여, Coherence 를 모니터링 할 수 있는 JSP 등을 만들어서 사용할 수 있습니다.

4.5 실시간 모니터링 - MBean Server 접속 방법 : Custom JSP

© 2011 GTPlus. All Rights Reserved. Page 18

Coherence Monitoring

1. JMX API 를 이용한 JSP

• Java SE 5.0 JVM 이상에서 실행중인 MBeanServer에 Aceess 하기 위한 API

• 웹브라우저를 이용해 WAS 의 JSP 로 접근해서 모니터링 하기 위해 WAS Node 에 추가되어야 할 옵션

• 모니터링을 위한 WAS 는 Coherence Cluster 의 멤버로 구성

-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all –Dtangosol.coherence.management.remote=true

Page 19: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

미들웨어를 사용 중인 고객들은 JMX API 를 이용하여, Coherence 를 모니터링 할 수 있는 JSP 등을 만들어서 사용할 수 있습니다.

4.5 실시간 모니터링 - MBean Server 접속 방법 : Custom JSP

© 2011 GTPlus. All Rights Reserved. Page 19

Coherence Monitoring

1. 웹브라우저를 통한 JSP 호출

Page 20: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

전용 MBeanServer Host 로 동작하는 MBeanConnector 를 내장하고 있으며, 이를 이용하여 JMX Client 들이 RMI 혹은 HTTP 를 통해 Coherence MBean 에 접근할 수 있는 방법을 제공합니다.

4.6 실시간 모니터링 - MBean Server 접속 방법 : MBeanConnector

© 2011 GTPlus. All Rights Reserved. Page 20

Coherence Monitoring

1. Coherence MBeanConnector

• Dedicated MBeanServer Host 로 동작하는 Cluster Node 를 실행

Sun’s JMX RI 를 classpath에 잡아야 한다.

• JConsole 을 통한 RMI 를 이용해서 Access

• 브라우저의 http 를 이용해서 Access

java -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote.host=localhost -Dtangosol.coherence.management.remote.registryport=9000 -Dtangosol.coherence.management.remote.connectionport=3000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -cp coherence.jar com.tangosol.net.management.MBeanConnector -rmi

java -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote.httpport=8888 -cp jmxri.jar;jmxtools.jar;coherence.jar com.tangosol.net.management.MBeanConnector –http

jconsole service:jmx:rmi://localhost:3000/jndi/rmi://localhost:9000/server

http://localhost:8888

Page 21: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JConsole 을 통해 Coherence MBeanConnector 에 접근 할 수 있습니다.

4.6 실시간 모니터링 - MBean Server 접속 방법 : MBeanConnector

© 2011 GTPlus. All Rights Reserved. Page 21

Coherence Monitoring

1. Coherence MBeanConnector – JConsole 에 JMX Service URL 입력

Page 22: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

웹브라우저를 통해 Coherence MBeanConnector 에 접근 할 수 있습니다.

4.6 실시간 모니터링 - MBean Server 접속 방법 : MBeanConnector

© 2011 GTPlus. All Rights Reserved. Page 22

Coherence Monitoring

1. Coherence MBeanConnector – http://ip:port

Page 23: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 에서 다양한 JVM 관련된 항목뿐만 아니라 Coherence 관련 다양한 MBean 값을 모니터링 및 관리할 수 있습니다.

4.7 모니터링 항목

© 2011 GTPlus. All Rights Reserved. Page 23

Coherence Monitoring

1. JConsole

다음과 같은 종류별로 모니터링 가능

Page 24: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 를 통해서 Coherence 가 어떤 장비에서 어떤 이름으로 실행되는지 확인할 수 있습니다.

4.7 모니터링 항목

© 2011 GTPlus. All Rights Reserved. Page 24

Coherence Monitoring

1. JConsole

• 어떤 장비의 어떤 Coherence Node 인지를 확인

Coherence -> Node -> nodeid -> attributes -> MemberName, MachineName

Page 25: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 를 통해서 Coherence Cluster 내의 Node 가 어떤 역할을 수행하는 Node 인지를 확인할 수 있습니다.

4.7 모니터링 항목

© 2011 GTPlus. All Rights Reserved. Page 25

Coherence Monitoring

1. JConsole

• 어떤 종류의 Coherence Node 인지를 확인

Coherence -> Node -> nodeid -> attributes -> RoleName

Page 26: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 를 통해서 Coherence*Web 으로 구성된 환경에서 개별 Coherence Cache Server 에 저장된 session count 를 확인 할 수 있습니다.

4.7 모니터링 항목

© 2011 GTPlus. All Rights Reserved. Page 26

Coherence Monitoring

1. JConsole

• 세션 개수 확인.

Coherence -> DistributedSessions -> session-storage -> nodeid -> back -> attributes -> Size

Page 27: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 에서 모니터링 되는 Node 는 Coherence Process, WAS 에 디플로이 된 App 각각에 NodeID 가 할당됩니다. 즉, Process 수와 Node 수가 일치하는 것이 아닙니다.

4.7 모니터링 항목

© 2011 GTPlus. All Rights Reserved. Page 27

Coherence Monitoring

1. JConsole

• Node 수 확인

• Node 는 자바 process 의 수가 아니다.

WAS에 n개의 app가 존재하는 경우

Node 수 = n X was 인스턴스 + coherence 프로세스 수

Page 28: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence 기본 모니터링 항목으로 환경 설정을 확인하기 위한 항목, 실시간 Cache 모니터링을 위한 항목과 CacheStore 모니터링 항목으로 나눠 정리를 하였습니다.

4.7 모니터링 항목 요약

© 2011 GTPlus. All Rights Reserved. Page 28

Coherence Monitoring

1. Coherence 모니터링 항목 요약

항 목

RoleName

ID

Unicast Address

Unicast Port

Multicast Address

Multicast Port

Production Edition

CPU Count

OldestMemberID

LicenseMode

BootClassPath

ClassPath

InputArguments

System Properties

대분류 항 목

Cluster Member

RoleName

ID

Memory (used/max)

Address

Port

Front

Size

TotalGets

TotalPuts

CacheHits

CacheMisses

HitProbability

Back

Size

Hits

Misses

Effectiveness

대분류 항 목

Write-Behind

StoreReads

StoreWrites

StoreFailures

환경 설정 항목

Cache 모니터링 항목

CacheStore 항목

Page 29: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence 에는 내장된 JMX Reporting 기능으로 MBean 값을 File 로 남기는 Reporter 를 제공합니다.

5.1 JMX Reporter 개요

© 2011 GTPlus. All Rights Reserved. Page 29

Coherence Monitoring

1. JMX Reporter

• Coherence Cluster Node 들에 대한 정보를 파일로 남겨주는 기능

• 생성 파일 위치

%coherence_home%\bin

The log files will be placed in the working directory of the application

• 구성 파일 위치

%coherence_home%\lib\coherence.jar 내의 ./reports/*.xml

• 생성되는 파일

디폴트는 3.6 까지는 7개의 Txt 파일이 생성. 3.7 부터는 디폴트로 10개의 Txt 파일이 생성

디폴트는 1분마다 모니터링 데이터 write. 한 시간 마다 새로운 파일을 생성

3.6 부터는 report-web-group.xml 이 제공되어, Coherence*Web 적용 사이트에 알맞은 Reporter 를 생성할 수 있음

• 파일 생성 방법

JConsole 에서 수동으로 생성

Java system property 를 이용한 자동 생성

• 구성 방식

Basic Configuration

Advanced Configuration

Page 30: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Reporter 에 의해 디폴트로 생성되는 파일은 10개이며 (3.6.X 버전까지는 7개 파일), 1시간 단위로 새로운 파일이 생성된다.

5.1 JMX Reporter 개요

© 2011 GTPlus. All Rights Reserved. Page 30

Coherence Monitoring

1. JMX Reporter에 의해 디폴트로 생성되는 파일

• 각 파일 내부 항목에 대한 상세 설명

http://docs.oracle.com/cd/E24290_01/coh.371/e22842/reporter.htm#CHDECBIE http://coherence.oracle.com/display/COH34UG/Analyzing+Reporter+Content

파일명 설명

YYYYMMDDHH-memory-status.txt Contains memory and garbage collection information about each node.

YYYYMMDDHH-network-health.txt Contains the publisher success rates and receiver success rates for the entire grid

YYYYMMDDHH-network-health-detail.txt Contains the publisher success rates and receiver success rates for each node

YYYYMMDDHH-node(s).txt Contains the list of nodes that were members of the grid

YYYYMMDDHH-service.txt Contains Request and Task information for each service.

YYYYMMDDHH-(report-)proxy.txt Contains utilization information about each proxy node in the grid

YYYYMMDDHH-cache-usage.txt Contains cache utilization(put, get, etc) statistic for each cache

YYYYMMDDHH-service.txt (3.7.X 에서 추가) Contains Request and Task information for each service

YYYYMMDDHH-flashjournal.txt (3.7.X 에서 추가) Contains usage and performance information for flash-based storage

YYYYMMDDHH-ramjournal.txt (3.7.X 에서 추가) Contains usage information for RAM-based storage

Page 31: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

coherence.jar 내의 tangosol-coherence.xml 파일을 보면 Reporter 설정 기본 항목들을 확인할 수 있습니다.

5.1 JMX Reporter 개요

© 2011 GTPlus. All Rights Reserved. Page 31

Coherence Monitoring

1. JMX Reporter 기본 설정값

• Coherence.jar 내의 tangosol-coherence.xml 에 설정

• Coherence.jar 내의 ./reports 디렉토리에 기본 제공되는 파일 리스트

report-all.xml, report-group.xml, report-web-group.xml (3.6부터 포함됨)

web 관련 파일은 3.6 부터 추가됨

<configuration system-property="tangosol.coherence.management.report.configuration">reports/report-group.xml</configuration> <autostart system-property="tangosol.coherence.management.report.autostart">false</autostart> <distributed system-property="tangosol.coherence.management.report.distributed">false</distributed>

Page 32: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JConsole 또는 ( j)VisualVM 에서 Reporter 를 이용해서 현재 시점의 snapshot 을 저장하기 위해 MBean 값을 File 로 남길 수 있습니다.

5.2 JMX Reporter – 현재 시점 MBean 저장 하기

© 2011 GTPlus. All Rights Reserved. Page 32

Coherence Monitoring

1. 파일 생성 방법 - JConsole

• Cluster 내의 모든 노드에 대해 일시적으로 모니터링 결과를 파일로 남기고자 할 때 이용

• tangosol.coherence.management.report.configuration 에 설정된 파일 내용(디폴트는 reports/report-

group.xml)에 있는 xml 파일의 경로와 파일명을 입력

아래 이미지는 sReportFile 입력으로 reports/management.xml 입력 후 결과

http://coherence.oracle.com/display/COH34UG/How+to+run+a+report+on+demand

Page 33: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence Cluster Node 에 대해 지속적인 모니터링과 모니터링 결과를 영구적으로 저장하기 위해 System Property 로 설정할 수 있는 Coherence 옵션을 제공합니다.

5.3 JMX Reporter – 지속적으로 MBean 값을 File 로 남기는 기능

© 2011 GTPlus. All Rights Reserved. Page 33

Coherence Monitoring

1. 파일 생성 방법 – Java system property

Cluster 내의 모든 노드를 지속적으로 모니터링 결과를 파일로 남기고자 할 때 이용

• Java system property 설정 값 – Coherence 기동 후 자동으로 파일 생성

• Report configuration 파일 변경

-Dtangosol.coherence.management.report.autostart=true

-Dtangosol.coherence.management.report.configuration=H:\OracleCoherenceLabs\coherence\lib\coherence\reports\report-all.xml

Page 34: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence Cluster 내의 모든 Node 에 대해 모니터링 정보를 한 Node 에서 파일로 남기게 하는 설정 방식을 제공합니다. 다른 구성 방식에 비해 오버헤드를 줄일 수 있습니다.

5.3 JMX Reporter – Basic 구성 방식

© 2011 GTPlus. All Rights Reserved. Page 34

Coherence Monitoring

1. Basic Configuration

• Cluster 내의 모든 노드에 대한 모니터링 정보를 하나의 파일로 남기게 하는 설정

• 대부분의 경우 이 방식을 권고

Page 35: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence Cluster 내의 모든 Node 에 대해 통합 Reporting 을 위한 설정으로 Managing Node 와 Managed Node 에 따라 각기 다른 설정 옵션을 추가합니다.

5.3 JMX Reporter – Basic 구성 방식

© 2011 GTPlus. All Rights Reserved. Page 35

Coherence Monitoring

1. Basic Configuration을 위한 설정

• On the “managing” node :

• On the “managed” node :

-Dtangosol.coherence.management.report.autostart=true -Dtangosol.coherence.management=all -Dcom.sun.management.jmxremote

-Dtangosol.coherence.management.report.autostart=true

Page 36: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence Cluster 내의 각 Node 에 대해 모니터링 정보를 개별 Node 에서 파일로 남기게 하는 설정 방식을 제공합니다. 기본적인 구성 방식에 비해 오버헤드가 증가합니다.

5.3 JMX Reporter – Advanced 구성 방식

© 2011 GTPlus. All Rights Reserved. Page 36

Coherence Monitoring

1. Advanced Configuration

• Cluster 내의 각 노드 마다 자신의 정보만을 파일로 남기게 하는 설정

주의 - 각 노드 마다 grid 전체에 대한 모니터링 정보를 파일로 남기는 것이 아님

Basic Configuration 보다 Overhead 가 큼

• 각 노드별 분석이 필요한 경우에만 권고

• 이런 설정에서 Grid level 분석은 상당히 어려워짐

Page 37: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence Cluster 내의 각 Node 마다 개별 Reporting 을 위한 설정으로 Managing Node 와 Managed Node 에 따라 각기 다른 설정 옵션을 추가합니다.

5.3 JMX Reporter – Advanced 구성 방식

© 2011 GTPlus. All Rights Reserved. Page 37

Coherence Monitoring

1. Advanced Configuration 을 위한 설정

• On the “managing” node :

• On the “managed” node :

-Dtangosol.coherence.management.report.autostart=false -Dtangosol.coherence.management.report.distributed=true -Dtangosol.coherence.management=all -Dcom.sun.management.jmxremote

-Dtangosol.coherence.management.report.autostart=true -Dtangosol.coherence.management.report.distributed=true -Dtangosol.coherence.management=local-only -Dcom.sun.management.jmxremote

Page 38: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

디폴트로 생성되는 Reporter 파일은 한 시간 단위로 생성되며, 모니터링 주기는 1분입니다. 모니터링 주기는 변경 가능합니다.

5.4 JMX Reporter – 생성된 파일

© 2011 GTPlus. All Rights Reserved. Page 38

Coherence Monitoring

1. JMX Reporter 를 이용한 파일 생성

• On the “managing” node :

모니터링 주기 설정(디폴트 1분) : report-all.xml, report-group.xml, report-web-group.xml 등 report 파일에 설정

Page 39: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

디폴트로 제공되는 Report 가 아닌 Custom Report를 생성할 수 있는 기능을 제공합니다.

5.5 JMX Reporter – Custom Reporter 파일 생성 1

© 2011 GTPlus. All Rights Reserved. Page 39

Coherence Monitoring

1. Custom Report 생성을 위한 설정 – Custom Report 를 추가

• Coherence.jar 를 푼다

• ./coherence/reports/report-all.xml 를 org_report-all.xml 로 복사한다.

또는, System Property 를 이용해서 Custom Report 파일을 설정할 수 있다.

• report-all.xml 에 report-cache-size2.xml 추가 설정을 한다.

http://docs.oracle.com/cd/E24290_01/coh.371/e22842/custom_report.htm#CIHDCCFE

http://coherence.oracle.com/display/COH34UG/How+to+modify+report+batch

<report-config> <location>H:\OracleCoherenceLabs\coherence\lib\coherence\reports\report-cache-size2.xml</location> </report-config>

Page 40: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

디폴트로 제공되는 Report 가 아닌 Custom Report를 생성할 수 있는 기능을 제공합니다.

5.5 JMX Reporter – Custom Reporter 파일 생성 2

© 2011 GTPlus. All Rights Reserved. Page 40

Coherence Monitoring

1. Custom Report 생성

• Managing node 에 Report configuration 파일 설정

디폴트는 rerport-group.xml

• Report-cache-size2.xml 파일을 만들고, 모니터링 할 항목을 기입한다.

http://coherence.oracle.com/display/COH34UG/How+to+create+a+custom+report

-Dtangosol.coherence.management.report.configuration=H:\OracleCoherenceLabs\coherence\lib\coherence\reports\report-all.xml

Page 41: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence 모니터링을 위해 모니터링 전용 Node 를 구성하고, 해당 Node 를 통해서 Coherence Cluster 내의 모든 Node 를 모니터링 하는 방법을 권고하며, File 로 남기고자 하는 경우 Reporter 라는 기능을 사용하면 됩니다.

6. Summary

© 2011 GTPlus. All Rights Reserved. Page 41

Coherence Monitoring

1. Coherence Node 를 모니터링 하는 방법

• JConsole (또는 JMX Client) 를 이용한 실시간 모니터링

• Reporter 를 이용한 mbean 값을 파일로 남겨 모니터링

Coherence Management Framework 에서 제공되는 기능

• Custom 툴을 통한 모니터링

Cache 에 들어간 값들을 모니터링 하기 위해서는 개발자가 직접 개발해야 함.

2. 미들웨어 사용 고객 환경

• 모니터링 전용 Coherence Node 를 구성하고, JConsole 또는 ( j)VisualVM 으로 모니터링

• 모니터링 전용 WAS 를 구성하고, 간단한 WebApp 를 디플로이하고 모니터링

3. 미들웨어 미 사용 고객 환경

• 모니터링 전용 Coherence Node 를 구성하고, JConsole 또는 ( j)VisualVM 으로 모니터링

Page 42: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

Coherence 모니터링을 위한 Reference 를 통해 손쉽게 Coherence 를 모니터링 할 수 있는 방법을 찾으실 수 있습니다.

7. Reference

© 2011 GTPlus. All Rights Reserved. Page 42

Coherence Monitoring

1. Coherence 모니터링을 위한 기본 정보

• http://docs.oracle.com/cd/E24290_01/coh.371/e22842/jmx.htm#BABICAAI

• http://docs.oracle.com/cd/E24290_01/coh.371/e22842/reporter.htm#CHDECBIE

• http://docs.oracle.com/cd/E24290_01/coh.371/e22842/custom_report.htm#CIHDCCFE

• http://docs.oracle.com/cd/E24290_01/coh.371/e22842/appendix_report.htm#BEHDCBIE

• http://docs.oracle.com/cd/E24290_01/coh.371/e22842/analyze_report.htm#CIHIHEHG – 모니터링 항목 설명

2. 제공되는 MBean 에 대한 구체적인 정보

• http://docs.oracle.com/cd/E24290_01/coh.371/e22843/com/tangosol/net/management/Registry.html

• http://download.oracle.com/otn_hosted_doc/coherence/342/com/tangosol/net/management/Registry.html

이곳에 있는 항목 모두를 모니터링 할 수 있음.

3. Coherence Support Forum

• http://forums.oracle.com/forums/forum.jspa?forumID=480

Page 43: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX 관련 기본 설정을 tangosol-coherence.xml 파일에서 확인할 수 있습니다. 제품 버전 마다 디폴트 값을 상이할 수 있습니다. 따라서, 명시적으로 옵션을 지정할 것을 권고합니다.

A.1 Management 구성 파일 – 3.7

© 2011 GTPlus. All Rights Reserved. Page 43

Coherence Monitoring

1. Management 관련 구성 파일 tangosol-coherence.xml 파일에서 모니터링과 관련된 부분 (3.7)

http://docs.oracle.com/cd/E13924_01/coh.340/e13818/managejmx.htm#COHDG241

Page 44: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX 관련 기본 설정을 tangosol-coherence.xml 파일에서 확인할 수 있습니다.

A.2 Management 구성 파일 – 3.4

© 2011 GTPlus. All Rights Reserved. Page 44

Coherence Monitoring

1. Management 관련 구성 파일 tangosol-coherence.xml 파일에서 모니터링과 관련된 부분 (3.4.X)

http://coherence.oracle.com/display/COH34UG/management-config

http://coherence.oracle.com/display/COH34UG/How+to+Manage+Coherence+Using+JMX

Page 45: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

JMX Client 를 이용해서 모니터링 할 때 JDK 버전, local 또는 Remote 프로세스에 따라 기능이 상이합니다.

A.3 ( j)VisualVM Feature Matrix

© 2011 GTPlus. All Rights Reserved. Page 45

Coherence Monitoring

1. ( j)VisualVM – Feature Matrix

• JDK 버전, local 또는 remote 프로세스에 따라 기능이 상이함을 인지하라.

Page 46: [Coherence] coherence 모니터링   v 1.0

The Best Business Infrastructure Software Company

www.gtplus.co.kr

서울시 서초구 서초동 1337-31 산학협동재단빌딩 10층 (137-860)

감사합니다


Top Related