Welcome! Log In Create A New Profile

Advanced

[PATCH 0 of 2] reduce memory footprint for long-lived requests

Maxim Dounin
September 09, 2011 07:10AM
Hello!

The following 2 patches address the issue seen with long lived requests:
they tend to consume lots of memory over time if chunked encoding is used,
and the memory is only freed after request termination.

First patch introduce buffers reuse in chunked filter. It mostly resolves
the problem, though there is still small "leak" related to chain links
(ngx_chain_t structures, 2 pointers) not always being reused.

Second patch introduce proper reuse of chain links, though it requires
API change in ngx_chain_update_chains() function. We may introduce
another function to preserve API, but I'm not really sure we want to.

Maxim Dounin

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

[PATCH 0 of 2] reduce memory footprint for long-lived requests

Maxim Dounin 1860 September 09, 2011 07:10AM

[PATCH 1 of 2] Buffers reuse in chunked filter

Maxim Dounin 727 September 09, 2011 07:10AM

Re: [PATCH 1 of 2] Buffers reuse in chunked filter

splitice 964 September 09, 2011 08:02AM

Re: [PATCH 1 of 2] Buffers reuse in chunked filter

Kornél Schadl 731 September 09, 2011 08:38AM

Re: [PATCH 1 of 2] Buffers reuse in chunked filter

Maxim Dounin 912 September 09, 2011 08:44AM

[PATCH 2 of 2] API change: ngx_chain_update_chains() now requires pool

Maxim Dounin 767 September 09, 2011 07:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 318
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