Welcome! Log In Create A New Profile

Advanced

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

Ashish S
May 02, 2012 11:54AM
Thanks for the response, maxim!

--Ashish

On Wed, May 2, 2012 at 3:39 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> 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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Ashish S May 01, 2012 11:40AM

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

Ashish S May 01, 2012 12:20PM

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

Maxim Dounin May 02, 2012 06:40AM

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

Ashish S May 02, 2012 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready