Welcome! Log In Create A New Profile

Advanced

Re: Cache manager occasionally stops deleting cached files

Maxim Dounin
February 25, 2016 09:22AM
Hello!

On Thu, Feb 25, 2016 at 05:46:32AM -0500, vergil wrote:

> vedranf Wrote:
> -------------------------------------------------------
> > Hello,
> >
> > I'm having an issue where nginx (1.8) cache manager suddenly just
> > stops deleting content thus the disk soon ends up being full until I
> > restart it by hand. After it is restarted, it works normally for a
> > couple of days, but then it happens again. Cache has some 30-40k
> > files, nothing huge. Relevant config lines are:

[...]

> We have the same problem, but i'm not sure, that this is caused by often
> nginx restarts.

This particular case was traced to segmentation faults, likely
caused by 3rd party modules.

[...]

> Also, i think it's somehow related to write connection leak. (see image
> link)
>
> https://s3.eu-central-1.amazonaws.com/drive-public-eu/nginx/betelgeuse_nginx_connections.PNG

[...]

> As you see write connections continuously grows. (When we had to power off
> the machine it's reached ~60k).
>
> For counting nginx connections we use standard http_stub_status_module.
>
> I think that nginx "reference counter" could be broken, because total
> established TCP connection remains the same all the time.

Writing connections will grow due to segmentation faults as well,
so you are likely have the same problem. See basic
recommendations in my initial answer in this threads.

--
Maxim Dounin
http://nginx.org/

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

Cache manager occasionally stops deleting cached files

vedranf February 18, 2016 11:20AM

Re: Cache manager occasionally stops deleting cached files

Maxim Dounin February 18, 2016 12:12PM

Re: Cache manager occasionally stops deleting cached files

vedranf February 19, 2016 08:00AM

Re: Cache manager occasionally stops deleting cached files

Maxim Dounin February 19, 2016 08:30AM

Re: Cache manager occasionally stops deleting cached files

vergil February 25, 2016 05:46AM

Re: Cache manager occasionally stops deleting cached files

Maxim Dounin February 25, 2016 09:22AM

Re: Cache manager occasionally stops deleting cached files

vergil April 13, 2016 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready