Skip to Content
자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
book

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
206
자바 마이크로서비스를 활용한
SRE
4.7.4
힙 사용률
자바 힙은 크기가 정의된 여러 풀로 구성되고 자바 객체 인스턴스는 힙 공간에 생성된다. 힙에
서 가장 중요한 구성 요소들은 다음과 같다.
이든 공간(
young
generation
)
신규 객체는 모두 이곳에 할당된다. 이 공간이 가득 차면
보조
minor
가비지 수집 이벤트가 발생
한다.
생존자 공간(
survivor
space
)
보조
가비지 수집이 발생하면 모든 생존 객체가 생존자 공간에 복사된다. 생존 객체는 참조가
남아 있으므로 수집 대상이 아니다. 생존자 공간에 도착한 객체는 생존 기간이 임계점에 도달
하면 지난 세대로 승격된다. 생존자 공간이 어린 세대의 모든 개체를 담을 수 없는 상황일 때는
생존자 공간을 건너뛰고 바로 승격되기도 한다. 할당 압력의 위험 수준을 측정하는 핵심 요소
가 바로 이러한 이른 승격이다.
지난 세대(
old
generation
)
오래 살아남은 객체가 저장되는 공간이다. 객체가 이든 공간에 저장되는 순간 생존 기간이 설
정되고 일정한 시기에 다다르면 지난 세대로 옮겨간다.
기본적으로 우리가 파악해야 할 상황은 이들 공간 중 한 곳 이상이 지나치게 ‘가득 차’
있는지
다. 공간이 가득차는 순간은 모니터링하기 까다롭다.
JVM
가비지 수집은 공간이 채워지자 마
자 비워버리도록 설계됐기 때문이다. 따라서 공간이 가득차는 현상 자체는 문제가 아니다. 가
득 찬 상태가 유지되고 있을 때가 진정한 문제 상황이다.
마이크로미터의
JvmMemoryMetrics
미터
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

최길우, 빌 루바노빅

Publisher Resources

ISBN: 9791162245286