[Mono-dev] Size of thread in Mono (65MB per thread?)

Nikita Tsukanov keks9n at gmail.com
Fri Dec 20 06:03:12 UTC 2013


Don't use OpenVZ, it limits _virtual_ memory, not physical. Mono threads
use a small amount of physical memory, but might reserve high of virtual
memory space. You'd rather try KVM/Xen virtualization.

Regards,
Nikita

2013/12/19 Nicolas Antoniazzi <nicolas.antoniazzi at gmail.com>

> Hi,
>
> I am using Mono in a virtualized environment with 512MB of RAM.
> I made a very simple program which starts 10 threads in a loop and
> apparently, every time that I start a new thread, approximately 65MB of
> memory is used.
>
> In my case, I can run 5 threads, but for the 6th, the program crashes
> (without any exception). 150MB are already consumed without the use of any
> thread.
>
> Is it a normal behavior?
>
> P.S: Sorry I double posted this message on mono-list because I did not
> understood that third party programmers also had to come on this devel list.
>
> Thanks!
> --
> Nicolas Antoniazzi
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20131220/416a667f/attachment.html>


More information about the Mono-devel-list mailing list