php-fpm 에서 pm.max_requests 설정 > 개발

본문 바로가기

사이트 내 전체검색

뒤로가기 개발

php-fpm 에서 pm.max_requests 설정

페이지 정보

작성자 관리자 (61.♡.222.236) 작성일 19-07-12 12:45 조회 2,094 댓글 0

본문

The number of requests each child process should execute before respwning.
This can be useful to work around memory leaks in 3rd party libraries.
For endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
Default Value:0
;pm.max_requests = 500

메모리 릭 등의 문제가 있을 경우 요청수를 설정할 수 있다.
요청수를 설정하면, 해당 요청수만큼 처리하고 respawn 된다.
기본값은 0 으로 무한요청 처리한다.


아파치 웹서버에도 비슷한 설정이 있다.

apache 2.2
MaxRequestsPerChild

아파치 2.4 에서 위 지시자의 이름이 변경되었다.

apache 2.4
MaxConnectionsPerChild


참고
https://phiz.kr/hosting/10265

추천0

댓글목록 0

등록된 댓글이 없습니다.

전체 386건 8 페이지
게시물 검색
Copyright © Baragi.Net All rights reserved.
PC 버전으로 보기