<br><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 5:01 PM, Stephen Nelson-Smith <span dir="ltr"><<a href="mailto:sanelson@gmail.com">sanelson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a CentOS 5 server running nginx, httpd and a dozen or so<br>
mongrel instances.  Since this morning I've been experiencing a<br>
serious memory leak - about 2G in 2 hours, until the machine needs to<br>
be rebooted.  I've tried to answer the question "what changed", and I<br>
can't think of anything on my side...<br>
<br>
In top, and related tools, I see no processes growing in size - all I<br>
see is the amount of memory available constantly reducing.<br>
<br>
The sort of thing I can think of that fits the evidence would be<br>
something like a process is being created and then dying without<br>
returning the memory to the system.<br>
<br>
However, I am unable to see the malloc's, and I can't currently think<br>
of a way to test this theory.<br>
<br>
I suspect systemtap may be the tool to use - anyone have experience of<br>
using it in this way, or have a recipe they could point me to?<br>
<br>
Any other ideas for troubleshooting and gathering info?<br>
<br>
Thanks in advance,<br>
<br>
S.<br>
<br>
--<br>
Stephen Nelson-Smith<br>
Technical Director<br>
Atalanta Systems Ltd<br>
<a href="http://www.atalanta-systems.com" target="_blank">www.atalanta-systems.com</a><br>
<font color="#888888">--<br>
Gllug mailing list  -  <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a></font></blockquote><div><br><br><br>I know its off topic but is there any reason you aren't using Passenger?<br>
<br> <a href="http://www.modrails.com/">http://www.modrails.com/</a><br><br>Will<br> </div></div><br>