Welcome! Log In Create A New Profile

Advanced

Cache keeps growing despite Max_size limit

March 06, 2013 07:02AM
Hi,

I'm having issues with nginx where my cache directory keeps growing until the hdd is full.
If anyone can give me any information on how to solve this it will be appreciated.

nginx -V:

nginx version: nginx/1.2.1
built by gcc 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --add-module=/root/nginx-1.2.1/ngx_slowfs_cache-1.9 --add-module=/root/nginx-1.2.1/nginx-sticky-module-1.0

nginx.conf:
user apache;

worker_processes 4;

error_log /var/log/nginx/error.log emerg;
pid /var/run/nginx.pid;

worker_rlimit_nofile 30000;

events {
worker_connections 8192;
use epoll;
multi_accept off;
}

http {
include /etc/nginx/mime.types;

sendfile on;

gzip on;
gzip_min_length 10;
gzip_types text/plain text/css image/png image/gif image/jpeg application/x-javascript text/xml
application/xml application/xml+rss text/javascript application/javascript;
gzip_vary on;
gzip_comp_level 9;
gzip_proxied any;
gzip_disable msie6;

tcp_nodelay off;

log_format '$remote_addr - $remote_user [$time_local]' '"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';

slowfs_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=fastcache:4096m max_size=25g;
slowfs_temp_path /var/cache/nginx/temp 1 2;

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

include /etc/nginx/sites-enabled/*;
}
Subject Author Posted

Cache keeps growing despite Max_size limit

jan5134 March 06, 2013 07:02AM

Re: Cache keeps growing despite Max_size limit

Maxim Dounin March 06, 2013 07:14AM

Re: Cache keeps growing despite Max_size limit

jan5134 March 06, 2013 07:16AM

Re: Cache keeps growing despite Max_size limit

Maxim Dounin March 06, 2013 07:30AM

Re: Cache keeps growing despite Max_size limit

Piotr Sikora March 06, 2013 06:22PM

Re: Cache keeps growing despite Max_size limit

jan5134 March 07, 2013 12:47AM

Re: Cache keeps growing despite Max_size limit

Piotr Sikora March 07, 2013 08:32AM

Re: Cache keeps growing despite Max_size limit

jan5134 March 07, 2013 09:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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