[Mono-list] Mono 3.2.0 Asp.NET MVC Memory Leak

James Wright james.wright at jigsawdezign.com
Fri Aug 16 12:20:52 UTC 2013


    I was using an old version of XSP (2.10.2) which was located on the 
mono-project downloads page, however I have since built XSP from GitHub 
Master (Aug 11), and although the memory leak seems slightly better it 
isn't really fixed.

   Something that is confusing me is the memory usage stats reported by 
"ps -AF", I'm don't think I understand how the RSS size is so much 
larger than SZ (see below)?

UID         apache
PID         15958
SZ           356709
RSS         816840
STIME    Aug11
TIME      01:06:01
CMD       /usr/bin/mono /usr/lib/mono/4.5/mod-mono-server4.exe 
--filename /tmp/mod_mono_serve....

  Is this memory usage normal, is there any easy way to help diagnose 
the leak?

Thanks,
James


On 01/08/2013 09:29, "Andrés G. Aragoneses" wrote:
> On 31/07/13 22:13, James Wright wrote:
>>
>>     I've recently upgraded our web server from Mono 2.10.8 to Mono 3.2.0
>> (built from source tarball), but I'm noticing a huge difference in
>> memory usage. The old version would startup our ASP.NET MVC 2 website
>> using ~100MB and over approximately two weeks grow to use around
>> 500-600MB. However, the latest version starts up using ~100MB but has
>> grown to use over 1GB+ in just two days under exactly the same load. I
>> might try switching to using the Boehm garbage collector to see if that
>> is any better.
>>
>>    Any advice on how to go about diagnosing where this leak is occurring
>> would be greatly appreciated!
>>
>>    Our stack is as follows; Amazon Linux x86-64, Apache 2.2, Mono 3.2.0,
>> mod_mono 2.10
>>
>
> And what version of xsp[1]?
>
> There have been some memory leak fixes[2] in master which are not in 
> 3.2, so you might want to test with building your own mono.
>
> [1] https://github.com/mono/xsp/tree/master/src/Mono.WebServer.Apache
> [2] 
> https://github.com/mono/mono/commit/c931c463c24ef4f257dc6dc4dafdc2ac81b8a9d3 
> and 
> https://github.com/mono/mono/commit/76e8c8ba0f5dad4c154b9ab6dd969ef2eb0bec79
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list