Skip to content

Conversation

hawkxiang
Copy link
Contributor

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.
截屏2020-12-03 下午5 52 27
Simply, ngx_log_debug1 is optional, but malloc_trim obligatory.

@spacewander spacewander merged commit 0d6bb2b into openresty:master Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants