Opened 7 years ago
Closed 7 years ago
#1347 closed enhancement (duplicate)
improve slice subrequest memory free
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | 1.12.x |
Keywords: | Cc: | ||
uname -a: | 3.10.0-327.22.2.el7.x86_64 | ||
nginx -V: | nginx version: nginx/1.12.1 configure arguments: --prefix=/root/cjhust --with-debug --with-http_stub_status_module --with-http_slice_module --with-pcre=addons/pcre-8.40 |
Description
server {
listen 9001;
server_name localhost;
location / {
root html;
}
}
server {
listen 9000;
proxy_max_temp_file_size 0;
location / {
slice 64k;
proxy_set_header range $slice_range;
proxy_pass http://127.0.0.1:9001;
}
}
#curl http://127.0.0.1:9000/1G.mp4 -o /dev/null -v --limit-rate 3000000
the memory will keep growing.
after patch https://github.com/cjhust/ngx_mod/blob/master/patches/nginx-1.12.1-slice-memory-free.patch
the memory will not keep growing.
this patch also runs for a good while on our CDN system.
Note:
See TracTickets
for help on using tickets.
duplicate of #1345