[ANN] ngx_lua v0.1.5: ability to capture multiple parallel subrequests

agentzh agentzh at gmail.com
Fri Feb 11 08:01:40 MSK 2011

On Fri, Feb 11, 2011 at 6:41 AM, Roman Vasilyev <roman at anchorfree.com> wrote:
> Forgot to say that below is my error log with 2 very frequent messages:
>> 2011/02/10 12:36:00 [alert] 3090#0: *21747555 zero size buf in output t:1
>> r:0 f:0 0000000006D42970 0000000006D42970-0000000006D42970 0000000000000000
>> 0-0 while sending request to upstream, client:, server: hss,
>> request: "POST /xxx/xxx.asmx HTTP/1.1", upstream:
>> "http://x.x.x.x/xxx/xxx.asmx", host: "xxx.com"

What are your client_max_body_size and client_body_buffer_size settings?

It seems that your request body has been tainted which could happen
when client_max_body_size > client_body_buffer_size and the body is
big enough buffered to a disk file.

But I cannot reproduce any leaks or thse zero size buf errors on my
side or on our production servers.

It'll be great if you provide the following additional information:

1. your lua library's version (or any 3rd-party patches applied by
your OS vendor),
2. your nginx -V output (or any 3rd-party patches applied by your OS vendor),
3. the precise memory change curve of your nginx worker processes over time,
4. the Lua function call collectgarbage("count") output when you think
your nginx is leaking,
5. sample requests that can easily reproduce the leak on other
environment, like on my laptop.


More information about the nginx mailing list