ngx_google_perftools_module

ngx_google_perftools_module 모듈(0.6.29)을 사용하면 Google Performance Tools를 사용하여 nginx 작업자 프로세스를 프로파일링할 수 있습니다. 이 모듈은 nginx 개발자에게 제공됩니다.

이 모듈은 기본으로 구축되지 않으므로, –with-google_perftools_module 구성 매개변수로 활성화해야 합니다.

이 모듈은 gperftools 라이브러리가 필요합니다.

예제 구성

google_perftools_profiles /path/to/profile;

프로필은 /path/to/profile.<worker_pid>로 저장됩니다.

Directives

Syntax:  google_perftools_profiles file;
Default: —
Context: main

nginx 작업자 프로세스의 프로파일링 정보를 저장하는 파일 이름을 설정합니다. 작업자 프로세스의 ID는 항상 파일 이름에 포함되며, 파일 이름 끝에 .을 붙인 뒤 첨부됩니다.