이 태스크는 힙 모니터를 활성화하는 데 사용되는 단계를 설명합니다.
힙 모니터는 WebSphere® Application Server 프로파일과 함께 사용되어
풀 크기와 비교한 프로파일의 힙 크기를 모니터합니다.
시작하기 전에
기존 WebSphere Application Server
프로파일에는 기능 추가에 사용 가능한 스크립트가 있습니다. heapMonitor 스크립트 정보를 참조하십시오.
이 태스크 정보
힙 모니터 기능을 사용하여 WebSphere
Application Server 프로파일의 JVM(Java™ Virtual Machine) 힙 크기를
풀 크기와 비교하여 모니터할 수 있습니다. 이 기능은 새 WebSphere Application Server 프로파일 또는
작성되는 프로파일에 사용할 수 있습니다.
WebSphere Application Server 프로파일에서
힙 모니터가 사용 가능한지 확인하고 필요한 경우, 활성화하려면 다음 단계를 수행하십시오.
프로시저
- WebSphere Application Server 프로파일의
서버를 시작하십시오.
- -status 플래그를 사용하여 heapMonitor 스크립트를 실행하십시오. 예를 들어
default로 이름 지정된 WebSphere
Application Server 버전 8.5 프로파일의 경우 Qshell 환경에서 다음 명령을 입력하십시오.
/QIBM/ProdData/WebSphere/AppServer/V85/ND/bin/heapMonitor -profileName default -status
출력은 다음과 같이 표시됩니다.WASX7209I: Connected to process "server1" on node MYSERVER using SOAP connector;
The type of process is: UnManagedProcess
WASX7303I: The following options are passed to the scripting
environment and are available as argument that is stored in the argv
variable: "[status, server1]"
HEAP0002I: The heap monitor is disabled.
$
- 이 예제의 경우에 힙 모니터를 사용하려면 Qshell 환경에 다음
명령을 입력하십시오.
/QIBM/ProdData/WebSphere/AppServer/V85/ND/bin/heapMonitor -profileName default -enable
출력은 다음과 같이 표시됩니다.WASX7209I: Connected to process "server1" on node MYSERVER using SOAP connector;
The type of process is: UnManagedProcess
WASX7303I: The following options are passed to the scripting environment and are
available as argument that is stored in the argv
variable: "[enable, server1]"
HEAP0005I: Enabling the heap monitor...
HEAP0003I: The heap monitor has been enabled. $
- 서버 중지 및 시작.
결과
일반적으로 다음 메시지가 메시지 표시 명령(DSPMSG QSYSOPR)에
표시됩니다.
HEAP MONITOR STARTED FOR 012500/QEJBSVR/SERVER1 IN SUBSYSTEM qwas85 IN POOL
*BASE POOL ID=2 POOLSIZE(B)=1687994368 RESERVED(B)=778240 HEAP
TOTAL(B)=202276864 FREE(B)=67037600 USEDHEAP=135239264
OS400.GC.HEAP.SIZE.MAX(KB) =240000000
힙 모니터가 활성화됩니다.