달력

4

« 2024/4 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
2009. 7. 28. 11:20

JCONSOLE 사용하기. 그거/Java2009. 7. 28. 11:20


1. jconsole을 사용하기 위한 환경 설정
2. 프로그램 실행 시 jconsole 연동을 위한 VM 옵션주기 


1. 환경 설정
  - %JAVA_HOME%/jre/lib/management/ 로 이동
  - jmxremote.password.template 파일을 복사하여 jmxremote.password 파일을 생성
  - jmxremote.password 파일의 제일 밑에 있는 아래 내용 주석 해제
    # monitorRole  QED
    # controlRole   R&D
  - jmxremote.password 파일을 읽기 전용으로 만든다.

2. 옵션 설정
  -Dcom.sun.management.jmxremote
  -Dcom.sun.management.jmxremote.port=8999
  -Dcom.sun.management.jmxremote.ssl=false
  -Dcom.sun.management.jmxremote.password.file=[passwordFilePath]/jmxremote.password


# jmxremote.password 파일 관련하여 에러 발생할 수 있음

   Password file read access must be restricted ........ 

   이런 에러 발생할 경우 아래와 같이 해준다.

   1. UNIX 환경
       $ chmod 444 jmxremote.password
   2. 윈도우 환경
       > cacls jmxremote.password /P Administrator:R

  
:
Posted by 뽀기