nginx/nginx · error
NGX_LOG_WARN
NGX_LOG_WARN
Error message
%ui worker_connections exceed open file resource limit: %i
What it means
Error "%ui worker_connections exceed open file resource limit: %i" thrown in nginx/nginx.
Source
Thrown at src/event/ngx_event.c:531
#if !(NGX_WIN32)
{
ngx_int_t limit;
struct rlimit rlmt;
if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) {
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
"getrlimit(RLIMIT_NOFILE) failed, ignored");
} else {
if (ecf->connections > (ngx_uint_t) rlmt.rlim_cur
&& (ccf->rlimit_nofile == NGX_CONF_UNSET
|| ecf->connections > (ngx_uint_t) ccf->rlimit_nofile))
{
limit = (ccf->rlimit_nofile == NGX_CONF_UNSET) ?
(ngx_int_t) rlmt.rlim_cur : ccf->rlimit_nofile;
ngx_log_error(NGX_LOG_WARN, cycle->log, 0,
"%ui worker_connections exceed "
"open file resource limit: %i",
ecf->connections, limit);
}
}
}
#endif /* !(NGX_WIN32) */
if (ccf->master == 0) {
return NGX_OK;
}
if (ngx_accept_mutex_ptr) {
return NGX_OK;
}
View on GitHub (pinned to 3f6f7824d4)
When it happens
Trigger: Thrown at src/event/ngx_event.c:531 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nginx/nginx@3f6f7824d4 (2026-08-22).
Data as JSON: /api/errors/50182e0a4a5542cf.
Report an issue: GitHub.