Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20211008] (Java) jstat: GC 튜닝 옵션 #217

Open
JuHyun419 opened this issue Oct 8, 2021 · 0 comments
Open

[20211008] (Java) jstat: GC 튜닝 옵션 #217

JuHyun419 opened this issue Oct 8, 2021 · 0 comments
Labels

Comments

@JuHyun419
Copy link
Owner

jstat

  • jstat는 GC가 수행되는 정보를 확인하는 명령어
jstat -<option> [-t] [-h<lines>] <vmid> [<interval> [<count>]]
  • -t: 수행 시간 표시
  • -h: 각 열의 설명을 지정된 라인 주기로 표시
  • interval: 로그를 남기는 시간차이
  • count: 로그 남기는 횟수

의 종류

  • class: 클래스 로더에 대한 통계
  • compiler: 핫스팟 JIT 컴파일러에 대한 통계
  • gc: GC 힙 영역에 대한 통계
  • gccapacity: 각 영역의 허용치와 연관된 영역에 대한 통계
  • gccause: GC의 요약 정보와, 마지막 GC와 현재 GC에 대한 통계
  • gcnew: 각 영역에 대한 통계
  • gcnewcapacity: Young 영역과 관련된 영역에 대한 통계
  • gcold: Old와 Perm 영역에 대한 통계
  • gcoldcapacity: Old 영역의 크기에 대한 통계
  • gcpermcapacity: Perm 영역의 크기에 대한 통계
  • gcutil: GC에 대한 요약 정보
  • printcompilation: 핫 스팟 컴파일 메서드에 대한 통계

image

  • E: Eden 영역
  • S0: Survivor 0 영역
  • S1: Survivor 1 영역
  • O: Old 영역
  • P: Permanent 영역
  • YGC: Young 영역의 GC 횟수
  • YGCT: Young 영역의 GC가 수행된 누적 시간(초)
  • FGC: 풀 GC 횟수
  • FGCT: 풀 GC 시간
  • GCT: Young GC의 시간(YGCT) + Full GC의 시간(FGCT)

  • NGC~: New (Young) 영역의 크기 관련
  • OGC~: Old 영역 크기 관련
  • PGC~: Perm 영역 크기 관련
  • S0C, S1C, EC, OC, PC: 각 영역의 현재 할당된 크기
  • MN, MX,C: Min, Max, Committed

참고: 자바 성능 튜닝이야기

@JuHyun419 JuHyun419 added the Java label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant