Nginx

ngx_google_perftools_module

ngx_google_perftools_module模块

  • 示例配置

  • 指令

  • google_perftools_profiles

ngx_google_perftoos_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>。

指令

句法:google_perftools_profiles文件;
默认:
语境:main

设置保存nginx工作进程分析信息的文件名。工作进程的ID始终是文件名的一部分,并附加到文件名的末尾,在点之后。