If turn on nginx debug log ./configure --with-debug ..., but not select debug_http log level.
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ...) will be ignored, malloc_trim() can't be executed as function parameter.
And memory isn't returned to OS immediately. This bug may cause serious memory leak, OOM.
Simply, ngx_log_debug1 is optional, but malloc_trim obligatory.
If turn on nginx debug log
./configure --with-debug ...
, but not selectdebug_http
log level. ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ...) will be ignored, malloc_trim() can't be executed as function parameter. And memory isn't returned to OS immediately. This bug may cause serious memory leak, OOM. Simply,ngx_log_debug1
is optional, butmalloc_trim
obligatory.