[Mono-dev] Application uses 5x more memory on Linux than on Window

Miguel de Icaza miguel at novell.com
Thu Mar 17 23:59:07 EDT 2011

> Actually there is no problem letting the application run on linux (it's
> using nhibernate, log4net and many other libraries).
> But I noticed a huge memory usage difference. If I'm compiling the
> application on my Windows system and let it run, it consumes up to 40mb
> ram (Release without debug information, csc).
> On Linux (Ubuntu 10.10 Mono 2.6.7 ) it consumes 200mb.

You could try a more recent version of Mono, there have been 24 months
of improvements since the 2.6 codebase was released.

Once you upgrade to something like Mono 2.10, try using the new
profiler to find what is consuming that memory.


More information about the Mono-devel-list mailing list