Welcome! Log In Create A New Profile

Advanced

Re: Max size of a string that can be logged in error log

Maxim Dounin
May 02, 2012 06:40AM
Hello!

On Tue, May 01, 2012 at 08:38:01AM -0700, Ashish S wrote:

> Is there a maximum size (and a corresponding tunable buffer size or
> so) for a string that can be logged in nginx Error log? I could find

The hard limit is in code, NGX_MAX_ERROR_STR which is defined to
2048. The limit is due to use of static buffer for logging
errors, it's used to avoid allocations in error logging path (as
allocation may fail, especially if we are trying to log allocation
error).

> the tunable for access log (buffer=size), but not for error log.

The access log line size isn't limited. The buffer= argument is
to reduce number of write() calls, which is helpfull in case of high
load.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Max size of a string that can be logged in error log

Ashish SMay 01, 2012 11:40AM

Re: Max size of a string that can be logged in error log

Ashish SMay 01, 2012 12:20PM

Re: Max size of a string that can be logged in error log

Maxim DouninMay 02, 2012 06:40AM

Re: Max size of a string that can be logged in error log

Ashish SMay 02, 2012 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 150 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready