본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

ngx_google_perftools_module 모듈

원문 보기 위키 갱신

ngx_google_perftools_module 모듈(0.6.29)은 Google Performance Tools를 사용해 nginx 워커 프로세스의 프로파일링을 활성화해요. 이 모듈은 nginx 개발자를 위한 것이에요.

이 모듈은 기본적으로 빌드되지 않으므로, --with-google_perftools_module 구성 매개변수로 활성화해야 해요.

이 모듈은 gperftools 라이브러리가 필요해요.

출처: 문서

본문

예시 구성 (Example Configuration)

google_perftools_profiles /path/to/profile;

프로파일은 /path/to/profile.<worker_pid>로 저장돼요.

지시어 (Directives)

Syntax: google_perftools_profiles file;
Default: —
Context: main

nginx 워커 프로세스의 프로파일링 정보를 담는 파일 이름을 설정해요. 워커 프로세스의 ID는 항상 파일 이름의 일부이며, 파일 이름 끝에 점 뒤에 붙어요.

더 알아보기 (Learn more)