Welcome! Log In Create A New Profile

Advanced

Re: nginx eating all RAM, log files?

April 22, 2013 03:34PM
Hi
Are you sure it's not the linux file/buffer cache that's using all your
ram? (does ps/top show nginx or the worker processes using it directly?)
Linux and most/all other unix variants will fill up unused ram with
cached versions of the most recently used files so they don't have to be
read from disk each time... it's completely normal and expected behaviour :)


On 22/04/13 19:30, Joseph Cabezas wrote:
> I have two nginx instances (nginx/1.0.15) on a 4GB RAM machine. Each
> instance runs fewer than 25 requests as reported with stub_status on;
>
> The problem is that once nginx is started from scratch it starts
> eating (or reserving?) RAM progressively as reported by free -m, up to
> the point where it leaves only 2-5mb left and then it doesnt go past
> that. In about 7 days it has eating everything. Nginx doesnt crash,
> nor does it touch swap but I definately feel it compromises system
> resources to the point iam concerned as in a production spike its wise
> to think the server has no room.
>
> This is the exact same issue on 4 other nginx machines I have.
>
> In order to start over again I must kill -QUIT the PIDs , delete the
> log file (which is smaller then 800mb) and then all goes back to the
> cycle.
>
> Please indicate me what pieces of information I can supply to debug
> this issue.
>
> Thanks
> Joseph
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

nginx eating all RAM, log files?

Joseph Cabezas April 22, 2013 02:32PM

Re: nginx eating all RAM, log files?

Miguel Clara April 22, 2013 02:48PM

Re: nginx eating all RAM, log files?

dbradfield April 22, 2013 03:34PM

RE: nginx eating all RAM, log files?

Joseph Cabezas April 22, 2013 04:06PM

Re: RE: nginx eating all RAM, log files?

mex April 22, 2013 04:29PM

Re: nginx eating all RAM, log files?

Maxim Dounin April 22, 2013 03:34PM

RE: nginx eating all RAM, log files?

Joseph Cabezas April 22, 2013 04:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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