excessive RAM consumption - memory leak

Dave Cheney dave at cheney.net
Thu Feb 21 01:26:48 MSK 2008


You might want to consider dropping your gzip ratio, local testing  
here showed little benefit past about 4. At level 9 you'll be using 4x  
the CPU for a tiny gain in compression, which is more than mitigated  
by the extra delay in overcompressing the pages.

Also, as Jodok has just pointed out, there is little observable gain  
in compressing image/* mime types.

[dave at crimson nginx]$ cat gzip.conf
gzip  on;
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length  1100;
gzip_comp_level  5;
gzip_buffers     4 8k;
gzip_types       text/plain text/html text/xml text/css application/x- 
javascript text/xml application/xml application/xml+rss text/ 
javascript application/atom+xml;


You could try the gzip_static module in the development branch to
On 21/02/2008, at 8:59 AM, Todd HG wrote:

>    gzip on;
>    gzip_min_length  1100;
>    gzip_buffers     4 8k;
>    gzip_types       image/jpg image/jpeg image/gif image/png text/ 
> plain
> text/xml application/xhtml+xml text/css application/xml image/svg+xml
> application/rss+xml application/atom_xml application/x-javascript
> application/x-httpd-php application/x-httpd-fastphp
> application/x-httpd-eruby text/html;
>    gzip_comp_level 9;






More information about the nginx mailing list