본문 바로가기
오라클/WebServer

[SunONE6] .perf 모니터링 설정 방법

by sangyeon 2021. 8. 3.
728x90

# SunOne6에서 perf 덤프를 설정

테스트 환경 정보

########################

-OS : AIX 7.1

-WebServer : Sun ONE Web Server 6.1SP13

########################

 

#1. 오라클 공식문서(Oracle iPlanet Web Server 6.1에서 성능 덤프를 활성화하는 방법 (문서 ID 1506182.1))

WebServer 6.1 인스턴스의 경우 GUI에서 통계를 활성화
하십시오. 관리 서버에 로그인

i)  
관리자 서버 페이지에서 서버를 선택하고 관리 '탭을
클릭 하십시오. ii) ' 모니터 '탭을 클릭 하십시오.


 통계 / 프로파일 페이지 사용  나타납니다.

iii) ' 
 ' 선택 하여 통계 / 프로파일 링을 활성화 하십시오 .
IV) 
클릭 OK  클릭 적용을 누른 다음 변경을 통계 / 프로파일 링을 활성화하기 위해 적용 버튼을 클릭합니다



위의 작업이 성공적으로 완료되면 obj.conf magnus.conf 파일에 다음 줄이 자동으로 추가됩니다.
obj.conf에는 다음이 표시됩니다.

<Objectname = "default">
NameTransfn = "assign-name"name = "stats-xml"from = "(/stats-xml | / stats-xml / *)"
 </Object> 아래

<Objectname = "stats-xml">
Service fn = "stats-xml"
</ Object>


 magnus.conf파일에서이 줄이 추가됩니다.

Init fn = "stats-init" profiling ="on"

 
이제 Perfdump Utility 추가하십시오


1.obj.conf 
파일의 <Object name ="default"> 아래에 다음을 추가하십시오.

이것은 stats-xml 뒤에 추가해야합니다 (순서가 없으면 추가하면 작동하지 않습니다).  :
NameTransfn = "assign-name"name = "stats-xml"from = "(/stats-xml | / stats-xml / *)"
NameTrans fn = assign-name from = "/.perf"name = "perf"


2.</ Object> 
아래에 다음을 추가하십시오.

위에서 언급했듯이 stats-xml 객체 뒤에 추가 해야합니다.

<Objectname = "perf">
Service fn = "service-dump"
</ Object>

>>공식 문서에 나와있듯이 SunOne6 관리콘솔에서 모니터링 기능을 On 하여 추가하면 obj.conf magnus.conf 파일에 stats-xml 내용이 추가됩니다.

 이후에 perf 설정을 반드시 stats-xml 뒤에 추가해주어야 perf 덤프를 확인  있습니다.(SunOne6에서는  순서가 매우 중요 > 순서가 다르다면 perf 설정이 동작하지 않음.)

 

#2. 내부 테스트 설정 파일(obj.conf / magnus.conf)

#####################################################################################obj.conf 
[xxxx@root:/xxxx/xx/syhwang/SunOne6/https-click1/config]#cat obj.conf
#You can edit this file, but comments and formatting changes
#might be lost when the admin server makes changes.

<Objectname="default">
AuthTransfn="match-browser" browser="*MSIE*"ssl-unclean-shutdown="true"
NameTrans fn="assign-name" name="stats-xml"from="(/stats-xml|/stats-xml/*)"
<Client ip="(192.168.0.222|192.168.0.93)"uri="/.perf">
NameTrans fn=assign-name from="/.perf"name="perf"
</Client>

NameTransfn="ntrans-j2ee" name="j2ee"
NameTransfn="pfx2dir" from="/mc-icons"dir="/ofm/mw/syhwang/SunOne6/ns-icons" name="es-internal"
NameTransfn="document-root" root="$docroot"
PathCheckfn="unix-uri-clean"
PathCheckfn="check-acl" acl="default"
PathCheckfn="find-pathinfo"
PathCheckfn="find-index"index-names="index.html,home.html,index.jsp"
ObjectTypefn="type-by-extension"
ObjectTypefn="force-type" type="text/plain"
Servicemethod="(GET|HEAD)" type="magnus-internal/imagemap"fn="imagemap"
Servicemethod="(GET|HEAD)" type="magnus-internal/directory"fn="index-common"
Servicemethod="(GET|HEAD|POST)" type="*~magnus-internal/*"fn="send-file"
Servicemethod="TRACE" fn="service-trace"
Errorfn="error-j2ee"
AddLogfn="flex-log" name="access"
</Object>

<Objectname="j2ee">
Servicefn="service-j2ee" method="*"
</Object>
 
<Objectname="cgi">
ObjectTypefn="force-type" type="magnus-internal/cgi"
Servicefn="send-cgi" user="$user" group="$group" chroot="$chroot"dir="$dir" nice="$nice"
</Object>
 
<Objectname="es-internal">
PathCheckfn="check-acl" acl="es-internal"
</Object>

<Object name="stats-xml">
Service fn="stats-xml"
</Object>

<Object name="perf">
Service fn="service-dump"
</Object>



#################################################################################magnus.conf

[xxx@root:/xxx/xx/syhwang/SunOne6/https-click1/config]#cat magnus.conf
#
#The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
#They will not be supported in future releases of the Web Server.
NetsiteRoot/ofm/mw/syhwang/SunOne6
ServerNameclick1
ServerIDhttps-click1
#
RqThrottle128
DNSoff
Securityoff
PidLog/ofm/mw/syhwang/SunOne6/https-click1/logs/pid
Usernobody
StackSize131072
TempDir/tmp/https-click1-06eb6239

Initfn=flex-init access="$accesslog" format.access="%Ses->client.ip%- %Req->vars.auth-user% [%SYSDATE%]\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%%Req->srvhdrs.content-length%"
Initfn="load-modules"shlib="/ofm/mw/syhwang/SunOne6/bin/https/lib/libj2eeplugin.so"shlib_flags="(global|now)"
Init fn="stats-init" profiling="on"


#3. 내부 테스트 결과

>>특정 Ip 대해서만 .perf 페이지 정상 호출

 

 

 

728x90