Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx-0.6.29
On Tue, Mar 18, 2008 at 06:56:51PM +0200, Veaceslav Grecea wrote:
> On Вторник 18 марта 2008, Igor Sysoev wrote:
> > Разрешает profiler для worker'ов.
> > ./configure --with-google_perftools_module
> > nginx.conf:
> > google_perftools_profiles /path/to/profile;
> > Профайлы сохраняются в /path/to/profile.<worker_pid>
>
> # nginx -V
> nginx version: nginx/0.6.29
> configure
> arguments: --prefix= --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin
> --error-log-path=/var/log/nginx/nginx.error.log
> --http-log-path=/var/log/nginx/nginx.log
> --http-client-body-temp-path=/var/spool/nginx/tmp/client
> --http-proxy-temp-path=/var/spool/nginx/tmp/proxy
> --http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi
> --pid-path=/var/run/nginx.pid
> --user=_nginx --group=_nginx --with-http_ssl_module --with-cc-opt=-I
> /usr/include/pcre/
> --with-rtsig_module --with-select_module --with-poll_module --with-mail
> --with-mail_ssl_module --with-imap --with-imap_ssl_module --with-md5=YES
> --with-sha1=YES
> --with-http_ssl_module --with-http_realip_module --with-http_addition_module
> --with-http_sub_module --with-http_dav_module --with-http_flv_module
> --with-http_stub_status_module --with-google_perftools_module
> --with-http_perl_module
>
> Добавил в nginx.conf:
>
> http {
> ....
> google_perftools_profiles /var/tmp/nginx_profile;
> ....
> }
>
> # nginx -t
> 2008/03/18 18:46:05 [emerg] 28635#0: unknown
> directive "google_perftools_profiles" in /etc/nginx/nginx.conf:97
> 2008/03/18 18:46:05 [emerg] 28635#0: the configuration
> file /etc/nginx/nginx.conf test failed
>
> # strings /usr/sbin/nginx | grep google_perf
> ngx_google_perftools_module
> configure arguments: --prefix= <skipped>
> google_perftools
> google_perftools_profiles
>
> Что я не правильно делаю ?
google_perftools_profiles в основной секции.
--
Игорь Сысоев
http://sysoev.ru
|