본문으로 바로가기

Java Scouter 적용기(going)

category Programming Bookmark/Java 2021. 8. 23. 12:01

Java Scouter란?

 

가이드 라인 : https://www.slideshare.net/ienvyou/scouter-jboss

 

[오픈소스컨설팅]Scouter 설치 및 사용가이드(JBoss)

오픈소스 WAS 모니터링 솔루션인 Scouter에 대한 간략한 설치가이드입니다. JBoss 기준으로 작성되었으며, JBoss 관련된 스크립트는 github.com/OpenSourceConsulting/jboss-eap-6-scripts에서도 확인하실 수 있습니

www.slideshare.net

해당 포스트는 가이드라인을 참조하여 작성하였습니다.

 

설명은 github에서 확인 가능

-> https://github.com/scouter-project/scouter/blob/master/README_kr.md

 

GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

Scouter is an open source APM (Application Performance Management) tool. - GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

github.com

 

git source : https://github.com/scouter-project/scouter

 

GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

Scouter is an open source APM (Application Performance Management) tool. - GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

github.com

 

git release version  : https://github.com/scouter-project/scouter/releases

 

Releases · scouter-project/scouter

Scouter is an open source APM (Application Performance Management) tool. - scouter-project/scouter

github.com

 

release version 설치 후 

 

target 어플리케이션에 해당 옵션을 넣는다.(javaagent, document)

-javaagent:{path}/scouter/server/agent.java/scouter.agent.jar 
-Dscouter.config={path}/scouter/server/agent.java/conf/scouter.conf

 

실행시 debug Line

 

Mac Bigsur update 이후

java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.internal.cocoa.NSGraphicsContext.graphicsPort()" because "graphicsContext" is null
	at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2180)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:177)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:138)

client 실행이 안됨....방법 찾는중....

 

to be : https://github.com/scouter-project/scouter/issues/755

 

java.lang.NullPointerException on Mac Os BigSur · Issue #755 · scouter-project/scouter

BigSur 업데이트 후 scouter client 실행시 NullPointException이 발생하고 있습니다. .scouter/.meta/.log `eclipse.buildId=unknown java.version=1.8.0_261 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, A...

github.com

 

<key>Eclipse</key>
                <array>
                        <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/bin/java</string>
                        <!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
                                        or add a VM found via $/usr/libexec/java_home -V
                                <string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
                                <string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
                        -->
                        <string>-keyring</string>
      <string>~/.eclipse_keyring</string>
eclipse.buildId=unknown
java.version=1.8.0_231
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ko_KR
Framework arguments:  -keyring /Users/nata/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -data @user.home/.scouter -keyring /Users/nata/.eclipse_keyring

!ENTRY org.eclipse.osgi 4 0 2021-08-23 16:30:47.747
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
	at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2180)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:177)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:138)
	at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialog.java:937)
	at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:769)