<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello!,<br><br>This is the output of ps, iam having a hard time interpreting the memory usage perhaps you can help me differ?<br><br><br>USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND<br>root 18951 0.0 0.1 195892 6340 ? Ss Apr16 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/modified/nginx-consolidated-5.conf<br>root 18977 0.0 0.1 197600 5188 ? Ss Apr16 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/modified/nginx-consolidated-8.conf<br>nginx 18978 0.0 0.2 200096 9392 ? S Apr16 5:02 nginx: worker process<br>nginx 18979 0.0 0.1 197604 5768 ? S Apr16 0:03 nginx: cache manager process<br>nginx 23921 0.0 0.2 199892 9148 ? S Apr21 1:28 nginx: worker process<br>nginx 23922 0.0 0.1 195896 4844 ? S Apr21 0:00 nginx: cache manager process<br>root 24894 0.0 0.0 103244 832 pts/0 S+ 14:00 0:00 grep nginx<br>[root]# free -m<br> total used free shared buffers cached<br>Mem: 3631 1760 1871 0 307 1212<br>-/+ buffers/cache: 240 3391<br>Swap: 2047 0 2047<br><br><br>I have a cache explicitly set at the nginx.conf . My site is not that big, the cache I have doesnt get pass 15mb.<br><br>Please let me know if this is suitable or if I should report differently.<br><br>Thanks<br>Joseph<br> <br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Mon, 22 Apr 2013 20:32:31 +0100<br>From: rkearsley@blueyonder.co.uk<br>To: nginx@nginx.org<br>Subject: Re: nginx eating all RAM, log files?<br><br>
Hi<br>
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?)<br>
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 :)<br>
<br>
<br>
<div class="ecxmoz-cite-prefix">On 22/04/13 19:30, Joseph Cabezas
wrote:<br>
</div>
<blockquote cite="mid:BLU170-W21DFBA4B07C77D37F6E4E4D0CB0@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">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; <br>
<br>
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. <br>
<br>
This is the exact same issue on 4 other nginx machines I have. <br>
<br>
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.<br>
<br>
Please indicate me what pieces of information I can supply to
debug this issue.<br>
<br>
Thanks<br>
Joseph<br>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
nginx mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
<br>
<br>_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx</div> </div></body>
</html>