diff options
author | Valentin Bartenev <vbart@nginx.com> | 2015-03-19 19:29:43 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2015-03-19 19:29:43 +0300 |
commit | cc569b92528373694ae3ebc3649b35c9fb6ba540 (patch) | |
tree | d7c730171a8f7b2c65328d6e835968192131906b /src/http/ngx_http_request.c | |
parent | babd64e344331ec4751dcb191eb4e847e3b36a4a (diff) | |
download | nginx-cc569b92528373694ae3ebc3649b35c9fb6ba540.tar.gz nginx-cc569b92528373694ae3ebc3649b35c9fb6ba540.zip |
Core: added cyclic memory buffer support for error_log.
Example of usage:
error_log memory:16m debug;
This allows to configure debug logging with minimum impact on performance.
It's especially useful when rare crashes are experienced under high load.
The log can be extracted from a coredump using the following gdb script:
set $log = ngx_cycle->log
while $log->writer != ngx_log_memory_writer
set $log = $log->next
end
set $buf = (ngx_log_memory_buf_t *) $log->wdata
dump binary memory debug_log.txt $buf->start $buf->end
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions