[Mono-dev] Apache 2.2.3 and mod_mono 2.10.1 is memory leaking
Nicklas Overgaard
nicklas at isharp.dk
Mon May 2 16:01:08 EDT 2011
Hello,
We have just launched a webshop into production based on apache 2.2 with
mono 2.10. Over the weekend and today, we have noticed that Apache is
slowly consuming all of the available memory on the system. This
resulted in a hard crash of our linux server, leaving us unable to
communicate with it though HTTP and SSH.
After a restart, the problem sort of just continued. Over the past 5
hours, 1.3 GB of memory has went into the void. The mod_mono control
panel looks a bit funny - it reports the following:
<control panel output>
1280 22003s /ShowProduct.aspx?relationID=303
-256 1304366136s /Help.aspx
-256 1304366136s /Overview.aspx?cat=20
-256 1304366136s /ShowModule.aspx?mod=Order&action=orderview&id=30003959
</control panel output>
It seems as if four threads are somehow stuck. The "seconds" counter
just keeps increasing along with the memory usage.
Does anyone have ideas on how to troubleshoot this in the production
system without causing total havoc? We would like to be able to serve
customer requests :)
I stumbled upon the following pages while digging through google:
http://www.mono-project.com/Debugging#Using_Valgrind_on_Mono
http://www.mono-project.com/Profiler (for performing heap shots)
But i'm not quite sure how to configure apache to execute the websites
in the correct manner, collecting enough information to troubleshoot,
while still being able to serve requests.
Any help is greatly appreciated.
Best regards,
Nicklas Overgaard
More information about the Mono-devel-list
mailing list