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

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

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
214
자바 마이크로서비스를 활용한
SRE
4.7.6
파일 설명자
유닉스에서
ulimit
명령은 동시 열람 파일 설명자를 포함해 단일 사용자가 사용하는 여러 리
소스를 제한하는 기능을 한다. 파일 설명자는 실제 파일뿐만 아니라 네트워크 접속, 데이터베
이스 연결 등에 쓰인다.
ulimit
-
a
명령어는 현재 셸의
ulimit
설정들을 보여준다. 출력 결과는 [예제
4
-
27
]과 비슷
하다. 많은 운영체제가 파일 설명자의 기본 제한값을
1
,
024
로 설정한다. 요청마다 각 파일을
읽거나 쓰고 동시 스레드로 처리하는 서비스는 이런 운영체제에 적합하지 않다. 현대의 마이크
로서비스, 특히 논블로킹 서비스는 수천 개 이상의 동시 요청을 처리할 수 있어야 한다.
예제
4-27
유닉스 셸의
ulimit
-
a
명령 실행 결과
$ ulimit -a
...
open files (-n) 1024 ❶
...
cpu time (seconds, -t) unlimited
max user processes (-u) 63796
virtual memory (kbytes, -v) unlimited
❶
현재 열려 있는 파일 수가 아니라 동시에 열 수 있는
전체
파일 수를 나타낸다.
자주 발생하는 상황은 아니지만 파일 설명자 개수가 제한선에 도달하면 치명적인 문제가 발생
한다. 파일 설명자 사용 방식에 따라 애플리케이션이 ...
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