Welcome! Log In Create A New Profile

Advanced

Re: Buffering issues with nginx

Valentin V. Bartenev
July 21, 2017 05:06PM
On Friday 21 July 2017 13:45:51 Dan34 wrote:
[..]
>
> In short, these could affect my case: SO_RCVBUF, SO_SNDBUF on nginx side and
> whatever buffering nginx uses for handling data. I run that same test with
> 25MB data and I got totally identical result: 12.5MB was buffered on nginx
> side. That stuff that could affect my case cannot really add up to 12.5MB
> and 10 minute of time.
> There is a wild possibility that tcp window scaling resulted in some huge
> window on node->nginx side and ended up storing that 12MB in tcp window
> itself but i'm not sure if TCP window should be accounted into these
> SO_RCVBUF or that RCVBUF is extra data on top of internals of TCP.
>

nginx doesn't set SO_RCVBUF/SO_SNDBUF by default, which usually means that
kernel will use system defaults and auto-scalling.


> So,.. any ideas how come nginx ends up buffering 12.5MB data?
>

You should check tcpdump (or wireshark) to see where actually 12.5MB
of data have been stuck.

wbr, Valentin V. Bartenev

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

Buffering issues with nginx

Dan34 July 17, 2017 02:06AM

Re: Buffering issues with nginx

Francis Daly July 17, 2017 05:16AM

Re: Buffering issues with nginx

Dan34 July 17, 2017 09:47PM

Re: Buffering issues with nginx

Francis Daly July 19, 2017 04:18PM

Re: Buffering issues with nginx

Dan34 July 21, 2017 07:02AM

Re: Buffering issues with nginx

Valentin V. Bartenev July 21, 2017 09:20AM

Re: Buffering issues with nginx

Dan34 July 21, 2017 01:45PM

Re: Buffering issues with nginx

Valentin V. Bartenev July 21, 2017 05:06PM

Re: Buffering issues with nginx

Dan34 July 22, 2017 02:00AM

Re: Buffering issues with nginx

Dan34 July 24, 2017 10:28AM

Re: Buffering issues with nginx

Dan34 July 24, 2017 12:24PM

Re: Buffering issues with nginx

Francis Daly July 24, 2017 03:06PM

Re: Buffering issues with nginx

Dan34 July 29, 2017 10:16PM

Re: Buffering issues with nginx

Dan34 July 29, 2017 10:41PM

Re: Buffering issues with nginx

Valentin V. Bartenev July 30, 2017 10:16AM

Re: Buffering issues with nginx

Dan34 July 30, 2017 02:03PM

Re: Buffering issues with nginx

Dan34 July 31, 2017 02:37AM

Re: Buffering issues with nginx

Igal @ Lucee.org July 19, 2017 04:22PM

Re: Buffering issues with nginx

Dan34 July 21, 2017 05:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready