mdounin at mdounin.ru
Sat May 9 13:15:40 MSD 2009
On Fri, May 08, 2009 at 07:16:27PM -0400, kevinmkilbride wrote:
> There appears to be a bug in 0.7.55 (as well as 0.7.54, and perhaps others) when serving .flv files.
> Connections never free. If you look at the stub_status page, the list of writers increases without limit. On a completely idle machine, connections that use the flv module are permanently added to the "writing" list, no matter how long it has been since the connection was closed; connections that do not use the flv module increment the other connection counters, as expected, but do not create lingering "ghost writers."
Could you please try this patch?
Flv module shouldn't be the problem since it doesn't increment
connection counters by itself, but typical usage pattern for flv
may trigger the issue described in the above patch (especially
combined with limit_rate functionality, not sure if you use it).
> The server in question is hosting the flv files from an XFS partition. The nginx executable has been linked with libhugepages and is fully loaded in a tlbfs segment. Sendfile is enabled and it makes no difference what the output buffers parameter is set to. I have tried it with directio on and off with the same result: with directio on, nginx leaks buffer memory, increasing the size of its memory image without limit; with directio off, it would (eventually, if I let it) exhaust file descriptors.
> This problem does not exist for 0.6.36 using the exact same compilation options, configuration files and spool directory.
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1794,1882#msg-1882
More information about the nginx