[Mongrel] Mongrel and Memory usage.
matte at ruckuswireless.com
Tue Sep 4 16:37:52 EDT 2007
Here's another possibility that I encountered before I was smarter (heh)
Are you providing download capabilities of large files. I manage a
support site for firmware downloads and other documents. Before I
discovered the X-Sendfile header, mongrel was loading and serving the
files. I had MAJOR memory spikes. Now that Apache is grabbing that
request (and sending the file) before proxying the request to Mongrel,
no more problems.
matte - webmonkey
webmaster at ruckuswireless.com
Benjamin Krause wrote:
>> I am using mongrel for a long time... But just now I see a problem.
>> I am running 3 instances using mongrel_cluster and nginx as a
>> reverse proxy. When I start the cluster I have a memory usage of
>> 20MB per instance... In the end of the day this usage is something
>> about 230MB for each instance. It should be a memory leak?
> This is most probably a memory leak, but not necessarily a mongrel
> related issue.
> You should check your app with bleak_house or any other memory
> profiling tool to see, where the leak comes from. I had the same
> problem and the leak was caused by ferret. Some native extensions
> (like rmagick) might be the problem.
>  http://blog.evanweaver.com/files/doc/fauna/bleak_house/files/
>  http://blog.omdb-beta.org/2007/7/29/tracking-down-a-memory-leak-
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mongrel-users